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 · 381 阅读 · 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 · 136 阅读 · 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 · 148 阅读 · 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 · 232 阅读 · 0 评论
分享