Skip to content

Instantly share code, notes, and snippets.

View daphnelee3's full-sized avatar
🌱

Daphne Lee daphnelee3

🌱
View GitHub Profile
@daphnelee3
daphnelee3 / REACTO-reverse-LL.md
Created December 2, 2019 19:07
Reverse a Linked List

Reverse a Linked List


Interviewer Prompt

const mkNode = (value, next = null) => ({ value, next })
const nums = mkNode(1, mkNode(2, mkNode(3)))