LC 83

Remove Duplicates from Sorted List

Easy · LC 1–100

linked-list
Free

Candidate solution routes

Primary

Linked-List Pointer Rewiring

Free

Invariant: prev bounds the correctly processed chain and cur is the first unprocessed node; every original node belongs to exactly one side and remains reachable.

candidate confidence: 0.588 · metadata_only

Alternate 1

Same-Direction / Read-Write Pointers

Free

Invariant: After processing a[0:read], a[0:write] is exactly its correct stable filtered output, with write no farther than read+1.

candidate confidence: 0.470 · metadata_only

How to use this page

Read the statement and constraints first, then validate recognition signals, invariant, and complexity. Candidate score is not correctness evidence.