Maximum Subarray
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
(数组连续子串的和最大)
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
(数组连续子串的和最大)
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
(N皇后的问题,求解个数)
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
(N皇后的问题,求所有解)
You are given an nxn 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).
(顺时针旋转矩阵90度)
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
(含有重复元素的全排列)
Given a collection of distinct integers, return all possible permutations.
(排列组合)
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of jumps.
(跳棋游戏II,最小步到队尾)
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for “?” and “*”.
(通配符匹配)