Reverse a singly linked list
Given a reference to the head of a singly linked list, reverse it and return a reference to the head of the reversed list.
Read →Interview prep
Worked solutions to common interview problems, with the reasoning, complexity analysis, and edge cases that actually matter in the room.
Given a reference to the head of a singly linked list, reverse it and return a reference to the head of the reversed list.
Read →Given an array of integers and an integer target, return indices of the two numbers such that they add up to the target.
Read →