
递归
景行cmy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode 51. N-Queens
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other. Given an integern, return all distinct solutions to then-queens puzzle. Each...原创 2019-07-15 09:25:42 · 106 阅读 · 0 评论 -
leetcode 726. Number of Atoms
Given a chemicalformula(given as a string), return the count of each atom. An atomic element always starts with an uppercase character, then zero or more lowercase letters, representing the name. ...原创 2019-08-08 16:04:13 · 196 阅读 · 0 评论 -
leetcode 741. Cherry Pickup
In a N x Ngridrepresenting a field of cherries, each cell is one of three possible integers. 0 means the cell is empty, so you can pass through; 1 means the cell contains a cherry, that you can...原创 2019-08-19 15:48:08 · 200 阅读 · 0 评论 -
leetcode 753. Cracking the Safe
There is a box protected by a password. The password is a sequence ofndigitswhere each digit can be one of the firstkdigits0, 1, ..., k-1. While entering a password,the lastndigits entered wil...原创 2019-08-20 16:18:59 · 141 阅读 · 0 评论 -
leetcode 761. Special Binary String
Specialbinary strings are binary strings with the following two properties: The number of 0's is equal to the number of 1's. Every prefix of the binary string has at least as many 1's as 0's. ...原创 2019-08-20 21:31:53 · 227 阅读 · 0 评论 -
leetcode 772. Basic Calculator III
Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and empty sp...原创 2019-10-02 09:33:58 · 211 阅读 · 0 评论