624 Maximum Distance In Arrays
Maximum Distance in Arrays null class Solution: def maxDistance(self, arrays: List[List[int]]) -> int: start_elem = [] end_elem = [] for i,k in enumerate...
Maximum Distance in Arrays null class Solution: def maxDistance(self, arrays: List[List[int]]) -> int: start_elem = [] end_elem = [] for i,k in enumerate...
Lemonade Change At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you and order one at a time (in the order specified by bills). Each customer will only b...
Combination Sum II Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each n...
Kth Largest Element in a Stream Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. Implement K...
Minimum Number of Pushes to Type Word II You are given a string word containing lowercase English letters. Telephone keypads have keys mapped with distinct collections of lowercase English lette...
Kth Distinct String in an Array A distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the *kth distinct string present in a...
Range Sum of Sorted Subarray Sums You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array and then sorted them in...
Make Two Arrays Equal by Reversing Subarrays You are given two integer arrays of equal length target and arr. In one step, you can select any non-empty subarray of arr and reverse it. You are all...
Minimum Swaps to Group All 1’s Together II A swap is defined as taking two distinct positions in an array and swapping the values in them. A circular array is defined as an array where we consid...
Number of Senior Citizens You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15. The syste...