![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Leetcode 数据结构 Python
Leetcode 数据结构 Python
朵拉刷题记录
这个作者很懒,什么都没留下…
展开
-
Remove Linked List Elements 删除链表中的元素
删除链表中的元素删除链表中等于给定值 val 的所有节点。样例样例 1:输入:head = 1->2->3->3->4->5->3->null, val = 3输出:1->2->4->5->null样例 2:输入:head = 1->1->null, val = 1输出:null思路遍历整个链表,当遇到元素和给定数值相等,则跳过该node,将上一个node的next属性修改为当下这个node的next属性。所以原创 2020-08-10 03:54:14 · 218 阅读 · 0 评论 -
Leetcode 1417. Reformat The String Python3解法
Leetcode 1417. Reformat The String Python3解法Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits).You have to find a permutation of the string where no letter is followed by another letter and n原创 2020-06-15 07:31:38 · 170 阅读 · 0 评论