top of page


LeetCode - Find All Numbers Disappeared in an Array Fastest Solution
Given an integer array nums, where nums[i] is in the range nums[1,n], return all the missing numbers in the range [1,n] that do not
Ashwin Shirva
Jan 13 min read
48 views
1 comment


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
71 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
73 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
79 views
1 comment
bottom of page