Lesson 17 of 23
String సమస్యలు: Reverse, Palindrome, Frequency
11 min 30 XP
Interviews లో strrev వంటి library helpers లేకుండా string కోడ్ రాయమంటారు. రెండు tricks చాలా ప్రశ్నలకు సరిపోతాయి: రెండు చివరల నుండి swap (two pointers), 26 size count array.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.