Sara

  • Home

  • Tags

  • Categories

  • Archives

  • Search

LeetCode_Maximum Subarray

Posted on 2019-01-09 | Edited on 2019-01-10 | In LeetCode

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.
(数组连续子串的和最大)

Read more »

LeetCode_N-Queens II

Posted on 2019-01-09 | In LeetCode

N-Queens II

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皇后的问题,求解个数)



Read more »

LeetCode_N-Queens

Posted on 2019-01-09 | In LeetCode

N-Queens

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皇后的问题,求所有解)



Read more »

LeetCode_Pow(x, n)

Posted on 2019-01-09 | In LeetCode

Pow(x, n)

Implement pow(x, n), which calculates x raised to the power n (x^n).
(指数计算)

Read more »

LeetCode_Group Anagrams

Posted on 2019-01-09 | In LeetCode

Group Anagrams

Given an array of strings, group anagrams together.
(将使用相同字符构成的不同排列的单词合并)

Read more »

LeetCode_Rotate Image

Posted on 2019-01-09 | Edited on 2019-01-14 | In LeetCode

Rotate Image

You are given an nxn 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).
(顺时针旋转矩阵90度)

Read more »

LeetCode_Permutations II

Posted on 2019-01-09 | In LeetCode

Permutations II

Given a collection of numbers that might contain duplicates, return all possible unique permutations.
(含有重复元素的全排列)

Read more »

LeetCode_Permutations

Posted on 2019-01-09 | Edited on 2019-01-14 | In LeetCode

Permutations

Given a collection of distinct integers, return all possible permutations.
(排列组合)

Read more »

LeetCode_Jump Game II

Posted on 2019-01-09 | Edited on 2019-01-10 | In LeetCode

Jump Game II

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,最小步到队尾)

Read more »

LeetCode_Wildcard Matching

Posted on 2019-01-06 | Edited on 2019-01-09 | In LeetCode

Wildcard Matching

Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for “?” and “*”.
(通配符匹配)

Read more »
1…151617…21

Sara Han

207 posts
4 categories
40 tags
© 2019 Sara Han
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v6.4.2