Problem statement : Write a function to Compress a given string. Only return the compressed string if it saves space. Example: 'BBBAACCCCDD' --> 'B3A2C4D2'.
2 min read • ReadProblem statement: Write a function to reverse the words in a given string. Also, give the solution without using python in-built functions. Example: "how are you john ?" should return "? john you are how"
3 min read • Read