Showing 3 of 7 questions
You are given an array representing the lengths of sides. Determine the largest perimeter of a polygon that can be formed using some of these sides.
#1. Find Polygon With the Largest Perimeter
You're given an array and a series of queries. Each query asks for the XOR result of elements within a specific subarray range. Calculate and return the XOR values for each query.
#2. XOR Queries of a Subarray
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 · 7 total