Time Based Key-Value Store (LeetCode 981)
The problem Design a class with two methods: stores for at time . returns…
Tag
20 posts
The problem Design a class with two methods: stores for at time . returns…
The problem You get an array of non-negative integers and an integer . Split…
The problem Design an array of a given , initially all zeros, that can take…
The problem You get a list of product names and a search word that the user…
The problem You get a sorted array of distinct integers and a . If is in the…
The problem An array of distinct integers was sorted in ascending order and then…
The problem You get an integer matrix with two properties: each row is sorted…
The problem You get two sorted arrays (length ) and (length ). Return the…
The problem You get jobs. Job runs from to and pays . Choose a set of jobs…
The problem Given an integer array , return the length of the longest strictly…
The problem Given a string of lowercase letters, return the longest substring…
The problem There are of bananas, and is the size of pile . Koko picks an…
The problem You have versions of a product. At some point one version went bad…
The problem You get an integer array where no two neighbours are equal. A peak…
The problem A sorted array of distinct integers has been rotated some number of…
The problem You get an array sorted in non-decreasing order (duplicates allowed…
The problem Packages on a conveyor belt have weights and must be shipped in…
The problem You get an array of distinct integers sorted in ascending order…
Everyone knows binary search on a sorted array. The reason it’s a pattern worth…
Thirteen problems that drill the binary-search pattern from Lesson 10 — the…