3387. Maximize Amount After Two Days of Conversions
3387. Maximize Amount After Two Days of Conversions
Description
You are given a string initialCurrency
, and you start with 1.0
of initialCurrency
.
3386. Button with Longest Push Time
3386. Button with Longest Push Time
Description
You are given a 2D array events
which represents a sequence of events where a child pushes a series of buttons on a keyboard.
981. Time Based Key-Value Store
981. Time Based Key-Value Store
Description
Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key’s value at a certain timestamp.
973. K Closest Points to Origin
973. K Closest Points to Origin
Description
Given an array of points
where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k
, return the k
closest points to the origin (0, 0)
.
1899. Merge Triplets to Form Target Triplet
1899. Merge Triplets to Form Target Triplet
Description
A triplet is an array of three integers. You are given a 2D integer array triplets
, where triplets[i] = [ai, bi, ci] describes the i^th
triplet . You are also given an integer array target = [x, y, z]
that describes the triplet you want to obtain.
1851. Minimum Interval to Include Each Query
1851. Minimum Interval to Include Each Query
Description
You are given a 2D integer array intervals
, where intervals[i] = [lefti, righti] describes the i^th
interval starting at lefti and ending at righti (inclusive) . The size of an interval is defined as the number of integers it contains, or more formally righti - lefti + 1.
435. Non-overlapping Intervals
435. Non-overlapping Intervals
Description
Given an array of intervals intervals
where intervals[i] = [starti, endi], return the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
417. Pacific Atlantic Water Flow
417. Pacific Atlantic Water Flow
Description
There is an m x n
rectangular island that borders both the Pacific Ocean and Atlantic Ocean . The Pacific Ocean touches the island’s left and top edges, and the Atlantic Ocean touches the island’s right and bottom edges.