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