![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 76
梦想有只猫
这个作者很懒,什么都没留下…
展开
-
[Leetcode78, 90]之Subset与Subset ii的对比总结
Leetcode 78Subset: Given a set ofdistinctintegers,nums, return all possible subsets (the power set). Note:The solution set must not contain duplicate subsets. Example: 如果S=[1,2,3], 给出的解集应为: ...原创 2019-10-28 19:38:50 · 283 阅读 · 0 评论 -
[Leetcode]之Add Two Numbers
最近要刷leetcode,为了加深理解与记忆,在此做一些总结。题目:2. Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes cont...原创 2018-03-23 17:35:06 · 75 阅读 · 0 评论 -
[Leetcode6]之ZigZag Conversion
原题附上:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N A P L S I...原创 2018-03-25 17:02:59 · 91 阅读 · 0 评论 -
[Leetcode7]之Reverse Integer
原题:Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:Input: 120 Output: 21 Note:Assume we are dealing with an e...原创 2018-03-25 18:28:29 · 127 阅读 · 0 评论