top of page


Code Recipe
Dec 30, 20244 min read
LeetCode - Missing Number Fastest Solution
Given an integer array nums, containing n distinct numbers in the range 0 to n, return the only number in the range that is missing.
56 views1 comment


Code Recipe
Dec 29, 20243 min read
LeetCode - Contains Duplicate Fastest Solution
Given an array of integers nums, write an algorithm that returns true if any value appears at least twice in the array, and return false if
38 views1 comment


Code Recipe
Dec 28, 20244 min read
LeetCode - Remove Duplicates from Sorted Array Fastest Solution
Given an integer array nums sorted in ascending order, move all single occurrences of elements in it to the beginning of the nums array
36 views1 comment


Code Recipe
Dec 27, 20244 min read
LeetCode - Number of Islands BFS Solution
Given a m x n 2D binary array grid which represents of map of '1's (land) and '0's (water), return the number of islands in this grid.
33 views1 comment


Ashwin Shirva
Dec 26, 20244 min read
LeetCode - Number of Islands Fastest Solution
Given a 2D m x n array grid containing only 1s (land) and 0s (water), count the number of islands in it. An island is surrounded by
48 views1 comment


Code Recipe
Dec 25, 20244 min read
LeetCode - Minimum Size Subarray Sum
Given an array of positive integers nums and a positive number target, find the length of the smallest contiguous subarray whose sum is
32 views1 comment
bottom of page