top of page


142. Linked List Cycle II - LeetCode Fastest Solution
Given the head node of a linked list, return the node where the cycle starts. If cycle does not exist, return null. Do not modify the linked

Code Recipe
Jan 164 min read


141. Linked List Cycle - LeetCode Fastest Solution
Given the head node of a singly linked list, determine if the linked list has a cycle in it. A linked list has a cycle if some node in the

Code Recipe
Jan 144 min read


215. Kth Largest Element in an Array - LeetCode Fastest Solution
Given an array of integers nums and an integer k, return the kth largest element in the array. Note that you have to return the kth largest

Ashwin Shirva
Jan 136 min read


113. Path Sum II - LeetCode Fastest Solution
Given the root node of the binary tree and an integer targetSum, return all root to leaf paths in this tree such that, sum of these paths is

Code Recipe
Jan 104 min read


242. Valid Anagram - LeetCode Fastest Solution
Given two strings s and t, return true if t is a valid anagram of s. Otherwise return false. An anagram is a word or phrase made by

Code Recipe
Jan 94 min read


112. Path Sum - LeetCode Fastest Solution
Given the root node of a binary tree and an integer targetSum, return true if the tree has a path from root-to-leaf such that the sum of all

Code Recipe
Jan 84 min read
bottom of page