Showing 3 of 10 questions
Compress a given string by replacing consecutive repeating characters with the character followed by the count of repetitions. If the compressed string isn't shorter, return the original.
#1. String Compression
Given a list of words, group together all the anagrams. Anagrams are words that contain the same letters rearranged.
#2. Group Anagrams
Design a data structure that acts as a Least Recently Used (LRU) cache. Implement methods to get and put key-value pairs, evicting the least recently used entry when the cache is full.
#3. LRU Cache
Page 1 of 1 · 10 total