1937. Maximum Number of Points with Cost
You are given an m x n integer matrix points (0-indexed). Starting with 0 points, you want to maximize the number of points you can get from the […]
You are given an m x n integer matrix points (0-indexed). Starting with 0 points, you want to maximize the number of points you can get from the […]
Given an array nums[], construct a Product Array nums[] such that nums[i] is equal to the product of all the elements of nums except nums[i].
You are given m arrays, where each array is sorted in ascending order. You can pick up two integers from two different arrays
Given an integer n denoting the Length of a line segment. You need to cut the line segment in such a way that
At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you and order one
You are given a linked list where each element in the list is a node and have an integer data.
The distance of a pair of integers a and b is defined as the absolute difference between a and b. Given an integer array nums and an integer k, return the kth smallest distance among all
You are given two strings str1 and str2. Your task is to find the length of the longest common substring among the given strings. Examples:
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers
Given an integer n, find the square root of n. If n is not a perfect square, then return the floor value. Floor value
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order,
Given 2 sorted integer arrays arr1 and arr2. Find the median of two sorted arrays arr1 and arr2. Examples: Input: arr1 = [1, 2, 4,