Given head which is a reference node to a singly-linked list. The value of each node in the linked l...
Given an integer array sorted in non-decreasing order, there is exactly one integer in the array tha...
Given an integer number n, return the difference between the product of its digits and the sum of it...
Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Pla...
On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum ...
Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift ope...
Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices w...
You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate ...
Balanced strings are those that have an equal quantity of 'L' and 'R' characters. Given a balanced s...
We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to...