递归
Charles-Liu
这个作者很懒,什么都没留下…
展开
-
JSON查询
[CCF]JSON查询 Question JSON (JavaScript Object Notation) 是一种轻量级的数据交换格式,可以用来描述半结构化的数据。JSON 格式中的基本单元是值 (value),出于简化的目的本题只涉及 2 种类型的值: 字符串 (string):字符串是由双引号 ” 括起来的一组字符(可以为空)。如果字符串的内容中出现双引号 “,在双引号前面加...原创 2018-07-31 21:50:55 · 2483 阅读 · 0 评论 -
K-th Symbol in Grammar
[leetcode]K-th Symbol in Grammar 链接:https://leetcode.com/problems/reorganize-string/description/ Question On the first row, we write a 0. Now in every subsequent row, we look at the previous row ...原创 2018-08-11 22:21:32 · 135 阅读 · 0 评论 -
Coin Change
[leetcode]Coin Change 链接:https://leetcode.com/problems/coin-change/description/ Question You are given coins of different denominations and a total amount of money amount. Write a function t...原创 2018-08-02 22:23:02 · 139 阅读 · 0 评论 -
Split Array into Fibonacci Sequence
[leetcode]Split Array into Fibonacci Sequence 链接:https://leetcode.com/problems/split-array-into-fibonacci-sequence/description/ Question Given a string S of digits, such as S = "123456579", we ca...原创 2018-08-14 22:11:07 · 192 阅读 · 0 评论 -
Restore IP Addresses
[leetcode]Restore IP Addresses 链接:https://leetcode.com/problems/restore-ip-addresses/description/ Question Given a string containing only digits, restore it by returning all possible valid IP add...原创 2018-08-14 22:09:32 · 94 阅读 · 0 评论 -
Kth Largest Element in an Array
[leetcode]Kth Largest Element in an Array 链接:https://leetcode.com/problems/kth-largest-element-in-an-array/description/ Question Find the **k**th largest element in an unsorted array. Note t...原创 2018-08-06 22:34:52 · 86 阅读 · 0 评论 -
Gray Code
[leetcode]Gray Code 链接:https://leetcode.com/problems/gray-code/description/ Question The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-nega...原创 2018-08-06 22:34:06 · 117 阅读 · 0 评论 -
Different Ways to Add Parentheses
[leetcode]Different Ways to Add Parentheses 链接:https://leetcode.com/problems/different-ways-to-add-parentheses/description/ Question Given a string of numbers and operators, return all possible r...原创 2018-08-06 22:33:37 · 79 阅读 · 0 评论 -
Combination Sum
[leetcode]Combination Sum 链接:https://leetcode.com/problems/combination-sum/description/ Question Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), f...原创 2018-08-06 22:33:02 · 77 阅读 · 0 评论 -
Binary Watch
[leetcode]Binary Watch 链接:https://leetcode.com/problems/binary-watch/description/ Question A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom repr...原创 2018-08-06 22:32:39 · 126 阅读 · 0 评论 -
Shopping Offers
[leetcode]Shopping Offers 链接:https://leetcode.com/problems/shopping-offers/description/ Question In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there a...原创 2018-08-01 22:32:13 · 217 阅读 · 0 评论 -
Can I Win
[leetcode]Can I Win 链接:https://leetcode.com/problems/can-i-win/description/ Question In the “100 game,” two players take turns adding, to a running total, any integer from 1..10. The player who f...原创 2018-08-01 22:30:01 · 172 阅读 · 0 评论 -
Beautiful Arrangement
[leetcode]Beautiful Arrangement 链接:https://leetcode.com/problems/beautiful-arrangement/description/ Question Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array...原创 2018-08-27 11:09:48 · 255 阅读 · 0 评论