top of page
Ashwin Shirva
Jan 136 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
79 views1 comment
Code Recipe
Jan 104 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
30 views1 comment
Code Recipe
Jan 94 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
41 views1 comment
Code Recipe
Jan 84 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
5 views1 comment
Code Recipe
Jan 64 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
30 views1 comment
Code Recipe
Jan 53 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
42 views1 comment
bottom of page