umdreamer / leetcodeproblems

Solutions for LeetCode OJ
3 stars 9 forks source link

2023.5.20 Problem: 83. Remove Duplicates from Sorted List #18

Closed umdreamer closed 1 year ago

umdreamer commented 1 year ago
  1. Remove Duplicates from Sorted List Problem Link

Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted as well.

Example 1: image

Input: head = [1,1,2]
Output: [1,2]

Example 2: image

Input: head = [1,1,2,3,3]
Output: [1,2,3]

Constraints:

yeyuxq commented 1 year ago

image

xiaolu2002 commented 1 year ago

image

liu-si-han commented 1 year ago
image
shylieisme commented 1 year ago

RRE4)%MFG15RK3QIYM22P77

PinkyLame commented 1 year ago

image

sjh397 commented 1 year ago

image

bedauern commented 1 year ago
Snipaste_2023-05-20_17-41-00
ZWJ2212061008 commented 1 year ago

image

wangshiqi7 commented 1 year ago
截屏2023-05-20 17 49 34
tangyexi commented 1 year ago
屏幕截图 2023-05-20 175309
xkqwww commented 1 year ago

无标题

promisewith7 commented 1 year ago

image

huangyumei1 commented 1 year ago

QQ图片20230520195116

mafanjia commented 1 year ago

截屏9

gusuning commented 1 year ago
屏幕截图 2023-05-20 203452
12baoxingyu-6 commented 1 year ago
image
htywan commented 1 year ago

1

123lrb commented 1 year ago

K1ALKRU%~WYHEF67~K{BWIJ

24zlx commented 1 year ago

联想截图_20230520212831

1125766961 commented 1 year ago

image

zhjingyan commented 1 year ago

image

cuixiao02 commented 1 year ago
截屏2023-05-20 21 41 20
daowuwu commented 1 year ago

0M5RYK08OIH)7XNB)8QJX(Q

syr2212061031 commented 1 year ago

A 7@58_43ASRWEA4`KH1%Y

FXL1006 commented 1 year ago
image
686xiaozhang commented 1 year ago

QQ截图20230520220900

naqianqpg commented 1 year ago

5YVN__8Z`Q%I H9FRQBQS`E

zangfushuo commented 1 year ago
截屏2023-05-20 22 22 41
zyhzxy99 commented 1 year ago

W4816E2MB`6GYGLOCZBM NM

Lggg1234 commented 1 year ago

屏幕截图 2023-05-20 231817