top of page


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.
Code Recipe
Dec 30, 20244 min read
73 views
1 comment


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
Code Recipe
Dec 29, 20243 min read
51 views
1 comment


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
Code Recipe
Dec 28, 20244 min read
41 views
1 comment


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.
Code Recipe
Dec 27, 20244 min read
74 views
1 comment


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
Ashwin Shirva
Dec 26, 20244 min read
80 views
1 comment


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
Code Recipe
Dec 25, 20244 min read
38 views
1 comment
bottom of page