Showing 3 of 4 questions
Find the shortest contiguous subarray within a given array whose sum is at least a specified value K. Return the length of this subarray.
#1. Shortest Subarray with Sum at Least K
You are given two arrays of numbers. Find a subsequence of the same length from both arrays that maximizes their 'score', calculated by summing one subsequence and multiplying it by the minimum of the other.
#2. Maximum Subsequence Score
Design and implement a Least Frequently Used (LFU) cache. The cache should efficiently store key-value pairs, evicting the least frequently used items when it reaches capacity.
#3. LFU Cache
Page 1 of 1 · 4 total