Question Definition
There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in four directions (up, down, left, right). However, you can at most move N times. Find out the number of paths to move the ball out of grid boundary. The answer may be very large, return it after mod 109 + 7.
More …
Question Definition
Given an unsorted array of integers, find the number of longest increasing subsequence.
More …
Question Definition
Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.
More …
Question Definition
A message containing letters from A-Z is being encoded to numbers using the following mapping:
More …
Question Definition
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the multiple of k, that is, sums up to n*k where n is also an integer.
More …