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.