当前位置:网站首页>Leetcode-83 删除排序链表中重复的元素
Leetcode-83 删除排序链表中重复的元素
2022-07-01 18:33:00 【原来是大海】

class Solution(object):
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head : return
cur = head
while cur.next:
if cur.val == cur.next.val:
cur.next = cur.next.next
else:
cur = cur.next
return head
边栏推荐
- Leetcode-128 最长连续序列
- 12种数据量纲化处理方式
- Roll out! Enlightenment!
- Unity learning fourth week
- Samba basic usage
- Using OpenSSL encryption to rebound shell traffic
- PCL learning materials
- js如何将带有分割符的字符串转化成一个n维数组
- Redis master-slave realizes 10 second check and recovery
- At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
猜你喜欢

Check log4j problems using stain analysis
![[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush](/img/c0/25c1b96cc56fbd0231d32214d66718.jpg)
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush

关于企业中台规划和 IT 架构微服务转型

Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash

Explain in detail the process of realizing Chinese text classification by CNN

Using OpenSSL encryption to rebound shell traffic

Quick foundation of group theory (5): generators, Kelley graphs, orbits, cyclic graphs, and "dimensions" of groups?

1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT

From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl

t10_ Adapting to Market Participantsand Conditions
随机推荐
Domestic spot silver should be understood
Mujoco XML modeling
網上股票開戶安全嗎?是否可靠?
Pytorch crossentropyloss learning
Definition of rotation axis in mujoco
Glidefast consulting was selected as the elite partner of servicenow in 2022
How to learn automated testing?
Implementation of converting PCM file to WAV
The method of real-time tracking the current price of London Silver
主成分之综合竞争力案例分析
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
Force buckle day33
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
[Chongqing Guangdong education] basic psychology reference materials of Tianjin Normal University
Xia CaoJun ffmpeg 4.3 audio and video foundation to engineering application
This is the latest opportunity of the London bank trend
Mysql database of easyclick
Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
Talk about the favorite tools used by project managers