- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 【LeetCode】21. Merge Two Sorted Lists
Problem合并两个已排序的链接列表并将其作为新列表返回。新列表应该通过拼接前两个列表的节点来完成。例:输入: 1-> 2-> 4,1-> 3-> 4输出: 1-> 1-> 2-> 3-> 4-> 4Algorithmic thinkingpassPython 3 solutionclass ListNode: ...
2019-04-26 11:37:13 899
原创 【LeetCode】20. Valid Parentheses(Python3)
Problem由于只包含字符的字符串’(’,’)’,’{’,’}’,’[‘和’]’,确定输入字符串是有效的。如果输入字符串有效:必须使用相同类型的括号关闭左括号。必须以正确的顺序关闭打开括号。请注意,空字符串也被视为有效。Algorithmic thinkingclass Solution(object): def isValid(self, s): """...
2019-04-26 11:21:26 1572
原创 【LeetCode】19. Remove Nth Node From End of List
Problem给定链表,从链表末尾删除第n个节点并返回其头部Algorithmic thinkingpassPython 3 solutionclass Solution: # https://leetcode.com/problems/remove-nth-node-from-end-of-list/discuss/8802/3-short-Python-solution...
2019-04-26 10:24:26 1110
原创 【LeetCode】18. 4sum(Python3)
ProblemGiven an array nums of n integers and an integer targets,are there elements a, b, c, and d in nums such that a + b + c + d = targets?Find all unique quadruplets in the array which gives the ...
2019-04-26 10:11:21 1071
分享一个PyQt5的串口调试助手源码
2019-10-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人