LRU Cache
LRU Cache: Design a data structure that follows the constraints of a Least Recently Used (LRU) cache .
LRU Cache: Design a data structure that follows the constraints of a Least Recently Used (LRU) cache .
Rotate List: Given the head of a linked list, rotate the list to the right by k places.
Permutations II: Given a collection of numbers, nums, that might contain duplicates, return *all possible unique permutations in any order*. Example 1: Input: nums = [1,1,2] Output: [[1,1,2], [1,2,1], [2,1,1]]…
Subsets II: Given an integer array nums that may contain duplicates, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in…
Subsets: Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order.…
Letter Combinations of a Phone Number: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.…