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...
Given an array of integers arr, write a function that returns true if and only if the number of occu...
Given an array of distinct integers arr, find all pairs of elements with the minimum absolute differ...
Given a string text, you want to use the characters of text to form as many instances of the word &q...
Given a date, return the corresponding day of the week for that date. The input is given as three in...
A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pair...