All Posts

Max Points On A Line Problem

LeetCode 149. Given an array of points where points[i] =...

Lru Cache Problem

LeetCode 146. Design a data structure that follows the constraints...

Linked List Cycle Problem

LeetCode 141. Given head, the head of a linked list,...

Linked List Cycle II Problem

LeetCode 142. Given the head of a linked list, return...

Insertion Sort List Problem

LeetCode 147. Given the head of a singly linked list,...

Gas Station Problem

LeetCode 134. There are n gas stations along a circular...

Evaluate Reverse Polish Notation Problem

LeetCode 150. Evaluate the value of an arithmetic expression in...

Copy List With Random Pointer Problem

LeetCode 138. A linked list of length n is given...


Clone Graph Problem

LeetCode 133. Given a reference of a node in a...

Candy Problem

LeetCode 135. There are n children standing in a line....

Binary Tree Preorder Traversal Problem

LeetCode 144. Given the root of a binary tree, return...

Binary Tree Postorder Traversal Problem

LeetCode 145. Given the root of abinary tree, return the...

Word Ladder Problem

LeetCode 127. Given two words, beginWord and endWord, and a...

Word Ladder II Problem

LeetCode 126. Given two words, beginWord and endWord, and a...

Valid Palindrome Problem

LeetCode 125. A phrase is a palindrome if, after converting...

Triangle Problem

LeetCode 120. Given a triangle array, return the minimum path...