PinnedVikas Gogia·Jun 14, 2024Microsoft SDE interview process: 2024 (Canada)I recently appeared for Microsoft SDE position interview process at Vancouver, British Columbia.
Vikas Gogia·Jul 4Leetcode 2492. Minimum Score of a Path Between Two Cities1. Overview & Problem Explanation
Vikas Gogia·Jun 28Leetcode 3020. Find the maximum number of elements in a subsetThe problem asks us to find a subset (pick any element in any order) that forms a very specific symmetric pattern when sorted:
Vikas Gogia·Apr 24, 2025Leetcode 2799 Count complete subarrays in an arrayBrute force solution is to use set and explore all subarrays and check unique elements in all subarrays and compare it with the uniques in…
Vikas Gogia·Apr 22, 2025Leetcode 2338 Count the number of ideal arraysI couldn’t completely solve the problem with combinatorics, but have tried the solution using recursion and memoization approach.
Vikas Gogia·Apr 22, 2025Leetcode 2145 Count the hidden sequencesThe problem asks us to find the number of possible hidden sequences of length n+1 where all the values are in the range [lower, upper]…
Vikas Gogia·Apr 20, 2025Leetcode 781 Rabbits in ForestThe key insight is that if a rabbit reports seeing k other rabbits of the same color, it means there must be a group of (k + 1) rabbits of…
Vikas Gogia·Jun 28, 2024LeetCode Daily Problem 2285. Max total importance of roads: Jun 28, 2024Easy graph problem. Simply, count the degrees of each node and sort them to assign values in a greedy way such that we get the maximum…
Vikas Gogia·Jun 25, 2024LeetCode Daily Problem 1038. Binary Search Tree to Greater Sum Tree: Jun 25, 2024Every node’s value is to be replaced with its own value and the sum of all the values greater than it. Since, it’s a BST, we need parent’s…