Showing 3 of 4 questions
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.
#1. LRU Cache
Given a list of words, group together all the anagrams. Anagrams are words that contain the same letters rearranged.
#2. Group Anagrams
Imagine a binary tree where a single node starts an infection. Determine the amount of time it takes for the infection to spread to the entire tree, given the starting node.
#3. Amount of Time for Binary Tree to Be Infected
Page 1 of 1 · 4 total