会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tech Blog Pro
大数据/机器学习/数据挖掘/web开发 计算机世界里的一名小学生
首页
新随笔
联系
订阅
管理
2022年8月24日
本博客已停止维护,更多精彩请关注我的英文博客
摘要: https://medium.com/techtofreedom
阅读全文
posted @ 2022-08-24 04:38 周洋
阅读(38)
评论(0)
推荐(0)
2019年4月25日
Leetcode 82. Remove Duplicates from Sorted List II
摘要: 利用一个虚拟头节点,和维护一个前置节点.
阅读全文
posted @ 2019-04-25 04:50 周洋
阅读(400)
评论(0)
推荐(0)
Leetcode 83. Remove Duplicates from Sorted List
摘要: # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def deleteDuplicates(self, head: ListNode) -...
阅读全文
posted @ 2019-04-25 04:10 周洋
阅读(377)
评论(0)
推荐(0)
Leetcode 14. Longest Common Prefix
摘要: brute force
阅读全文
posted @ 2019-04-25 03:51 周洋
阅读(318)
评论(0)
推荐(0)
Leetcode 80. Remove Duplicates from Sorted Array II
摘要: Leetcode 26的加强版,只需要多加一个变量记录重复次数.
阅读全文
posted @ 2019-04-25 01:08 周洋
阅读(368)
评论(0)
推荐(0)
Leetcode 26. Remove Duplicates from Sorted Array
摘要: 本题加强版: Leetcode 80
阅读全文
posted @ 2019-04-25 00:49 周洋
阅读(316)
评论(0)
推荐(0)
2019年4月24日
Leetcode 1024. Video Stitching
摘要: class Solution: def helper(self,l,r,clips)->int: maxL,maxR=0,0 iL,iR=-1,-1 for i,c in enumerate(clips): if c[0]=r: return 1 if c[0]...
阅读全文
posted @ 2019-04-24 17:54 周洋
阅读(593)
评论(0)
推荐(0)
Leetcode 1023. Camelcase Matching
摘要: 暴力查找
阅读全文
posted @ 2019-04-24 17:52 周洋
阅读(385)
评论(0)
推荐(0)
Leetcode 1022. Sum of Root To Leaf Binary Numbers
摘要: dfs
阅读全文
posted @ 2019-04-24 07:27 周洋
阅读(377)
评论(0)
推荐(0)
Leetcode 1021. Remove Outermost Parentheses
摘要: 括号匹配想到用栈来做: 其实因为括号都是匹配好了的,只有左括号和右括号两种情况,没必要真的维护一个栈,栈是一种思想,未必要真的实现出来.只需要记录一下数就行.
阅读全文
posted @ 2019-04-24 07:22 周洋
阅读(545)
评论(0)
推荐(0)
下一页
公告