Category Archives: Strings

Questions related to strings

Run Length Encoding

Given an input string, write a function that returns the Run Length Encoded string for the input string.

Reverse words in a given string

Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i” Examples : Input : s = “geeks quiz practice code” Output : s = “code practice quiz geeks” Input : s = “getting good at coding needs a lot of… Read More »