- 博客(5)
- 收藏
- 关注
原创 [leetcode] N-Queenes
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the n-queens puzzle.Each s...
2018-11-26 14:49:54 160
原创 [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 r...
2018-11-18 21:19:36 215
原创 [leetcode] trapping rain water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.The above elevation map is represented by array ...
2018-11-11 14:01:19 139
原创 [leetcode] Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells.A sudoku solution must satisfy all of the following rules:Each of the digits 1-9must occur exactly once in each row.Each of the ...
2018-11-07 12:11:37 244
原创 [leetcode] string to integer
Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this...
2018-11-04 19:28:31 183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人