![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
递归
importsys
zjuer
展开
-
Leetcode 394. Decode String 字符串解码
Leetcode 394. Decode String394. Decode String题目描述示例:解答代码394. Decode String题目描述Given an encoded string, return it’s decoded string.The encoding rule is: k[encoded_string], where the encoded_string ...原创 2019-05-30 19:57:40 · 247 阅读 · 0 评论 -
LeetCode 112. Path Sum 路径总和
Leetcode 112. Path Sum 路径总和112. Path Sum 路径总和题目描述示例:解答1代码1解答2代码2112. Path Sum 路径总和题目描述Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values...原创 2019-06-05 21:45:50 · 168 阅读 · 0 评论 -
Leetcode 96. Unique Binary Search Trees 不同的二叉搜索树: 两种思路
Leetcode 96. Unique Binary Search Trees 不同的二叉搜索树: 两种思路96. Unique Binary Search Trees 不同的二叉搜索树题目描述示例:解答代码96. Unique Binary Search Trees 不同的二叉搜索树题目描述Given n, how many structurally unique BST’s (binar...原创 2019-06-13 15:51:24 · 323 阅读 · 0 评论 -
Leetcode 83. Remove Duplicates from Sorted List 删除排序链表中的重复元素
Leetcode 83. Remove Duplicates from Sorted List 删除排序链表中的重复元素1. Two Sum题目描述示例:解答1代码1解答2代码21. Two Sum题目描述Given a sorted linked list, delete all duplicates such that each element appear only once.示例:...原创 2019-06-02 20:13:32 · 271 阅读 · 0 评论 -
Leetcode 82. Remove Duplicates from Sorted List II 删除排序链表中的重复元素 II
Leetcode 82. Remove Duplicates from Sorted List II 删除排序链表中的重复元素 II1. Two Sum题目描述示例:解答1代码1解答2代码21. Two Sum题目描述Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...原创 2019-06-02 20:15:38 · 334 阅读 · 0 评论 -
LeetCode 726. Number of Atoms 原子的数量
LeetCode 726. Number of Atoms 原子的数量726. Number of Atoms 原子的数量题目描述示例:解答代码726. Number of Atoms 原子的数量题目描述Given a chemical formula (given as a string), return the count of each atom.An atomic element ...原创 2019-06-03 21:23:22 · 202 阅读 · 0 评论 -
LeetCode 139. Word Break 单词拆分
Leetcode 139. Word Break 单词拆分139. Word Break 单词拆分题目描述示例:解答1代码1解答2代码2139. Word Break 单词拆分题目描述Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s...原创 2019-06-04 20:24:39 · 234 阅读 · 0 评论 -
LeetCode 698. Partition to K Equal Sum Subsets 划分为k个相等的子集(典型递归问题)
LeetCode 698. Partition to K Equal Sum Subsets 划分为k个相等的子集:典型递归问题698. Partition to K Equal Sum Subsets 划分为k个相等的子集题目描述示例:解答代码698. Partition to K Equal Sum Subsets 划分为k个相等的子集题目描述Given an array of inte...原创 2019-06-18 15:26:54 · 277 阅读 · 0 评论 -
Leetcode 784. Letter Case Permutation 字母大小写全排列
Leetcode 784. Letter Case Permutation 字母大小写全排列Leetcode 784. Letter Case Permutation 字母大小写全排列题目描述示例:解答代码Leetcode 784. Letter Case Permutation 字母大小写全排列题目描述Given a string S, we can transform every let...原创 2019-08-04 10:27:52 · 178 阅读 · 0 评论