Showing 3 of 14 questions
Given a sorted array, find the first and last position of a given target value. If the target is not found, return [-1, -1].
#1. Find First and Last Position of Element in Sorted Array
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.
#2. LRU Cache
Given an array, rearrange it so that all zeros are moved to the end while maintaining the relative order of the non-zero elements.
#3. Move Zeroes
Page 1 of 1 · 14 total