python

data-structures

Implement a Hashmap

Problem Statement: Implement Hash Map with get, set and remove methods.

3 min read • Read
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

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
arrays

Anagram/Permutation check

Problem statement: Write a function to check whether given two strings are anagrams/permutation. An anagram occurs when two strings can be written using the exact same letters. Example : "abcabc" and "aabbcc" are anagrams.

3 min read • Read