top of page


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


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


680. Valid Palindrome II - LeetCode Fastest Solution
Given string s, return true if it is possible to make s a palindrome by removing at-most one character from s. A string is a palindrome if

Code Recipe
Jan 64 min read


125. Valid Palindrome - LeetCode Fastest Solution
Given a string s, return true if it is a palindrome, otherwise return false. A given sentence is a palindrome if, after converting all

Code Recipe
Jan 53 min read


260. Single Number III - LeetCode Fastest Solution
Given an integer array nums, every element in nums appears exactly twice except for two numbers that appear only once. Find these two number

Code Recipe
Jan 45 min read
bottom of page