strings

strings

String Compression

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 • Read
strings

FizzBuzz

Problem Statement: Write a function to implement Fizz-Buzz.

2 min read • Read
strings

String Reversal

Problem 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