5 views
25 Jan 2026
Print the reverse of the given string....
6 views
25 Jan 2026
Count vowels (a,e,i,o,u) in the string, case-insensitive....
4 views
25 Jan 2026
Capitalize the first letter of each word (words separated by spaces)....
4 views
25 Jan 2026
Check if the string is a palindrome ignoring spaces and case....
5 views
25 Jan 2026
Count how many words are in the string (words separated by spaces)....
5 views
25 Jan 2026
Compress the string using run-length encoding like a3b2....
5 views
25 Jan 2026
Print the first character that appears only once. If none, print -1....
4 views
25 Jan 2026
Given two strings, check if they are anagrams (ignore spaces, case-insensitive)....
4 views
25 Jan 2026
Remove duplicate characters but keep the first occurrence (spaces included)....
5 views
25 Jan 2026
Print the longest word in the line (if tie, print the first)....
3 views
25 Jan 2026
Check if b is a rotation of a (case-sensitive). Print YES or NO....
4 views
25 Jan 2026
Count how many times pattern p occurs in s (overlaps allowed)....
4 views
25 Jan 2026
Given n strings, print their longest common prefix (or empty)....
5 views
25 Jan 2026
Count how many times pattern p appears in s (overlaps allowed) using KMP....
4 views
25 Jan 2026
Find the length of the longest substring with all unique characters....
5 views
25 Jan 2026
Repeatedly remove adjacent equal characters. Print the final string....
4 views
25 Jan 2026
Print the length of the longest palindromic substring (expand-around-center)....
4 views
25 Jan 2026
Decode pattern like 3[a2[c]] -> accaccacc....
4 views
25 Jan 2026
Given s and p (lowercase), print all start indices where an anagram of p begins....
5 views
25 Jan 2026
Rearrange the string so that no two adjacent characters are the same. If not possible, print IMPOSSIBLE....