🌱 DSA (Beginner) · Essential Data Structures · cozy lesson
Linked List Basics
11 min · 1 min read · no scary math, promise
🤖
You’ve got this. Read a little, play a little — I’ll wait. No rush.
class N:
def __init__(self,v,n=None): self.v=v; self.next=n
def reverse(h):
prev=None
while h:
nxt=h.next; h.next=prev; prev=h; h=nxt
return prev
Dummy head for merge/delete. Two pointers for kth-from-end.
💛 Enjoying? Try 5 playful quizzes or watch it move.
Check your understanding
Correct answers earn XP (once each).
1. Reverse iteratively?
2. Cycle detect?
My notes (saved in this browser)
Select text above → Save selection, or write your own. AlgoMaster-style notebook, local-first for MVP.
No notes yet. Your highlights will live here.
Finished reading? Seal it with a tick ✅
The checkbox in the explorer turns green too — same progress.