860. 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 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,
You are given an m x n binary grid grid where 1 represents land and 0 represents water. An island is a maximal 4-directionally (horizontal or vertical) connected group of 1‘s. The grid
Given a set of n jobs where each jobi has a deadline and profit associated with it. Each job takes 1 unit of time to complete
An n x n grid is composed of 1 x 1 squares where each 1 x 1 square consists of a ‘/’, ‘\’, or blank space ‘ ‘. These
Given the head of a singly linked list, the task is to rotate the linked list clockwise by k nodes, i.e., left-shift the linked list by k nodes, where k is a