PinnedVikas GogiaMicrosoft SDE interview process: 2024 (Canada)I recently appeared for Microsoft SDE position interview process at Vancouver, British Columbia.Jun 14Jun 14
Vikas GogiaLeetCode 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…Jun 28Jun 28
Vikas GogiaLeetCode 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…Jun 25Jun 25
Vikas GogiaLeetCode Daily Problem 1438.We are asked to return size of longest subarray such that max abs diff b/w 2 elements is <= limit. Here, we can consider having max and min…Jun 23Jun 23
Vikas GogiaLeetCode Daily Problem 1248. Count of nice subarrays: Jun 22, 2024Problem says to find count of subarrays which have exactly k odd integers. This problem can be thought of as using 2 nested loops for the…Jun 22Jun 22
Vikas GogiaLeetCode Daily Problem 1052. Grumpy Bookstore Owner: Jun 21, 2024In order to find maximum satisfied customers provided owner can keep himself non grumpy for “x” consecutive number of minutes. Brute force…Jun 21Jun 21
Vikas GogiaLeetCode Daily Problem 633. Sum of Square Numbers: Jun 17, 2024Given, an integer c, check if c is a sum of squares of a and b. c = a² + b²Jun 17Jun 17
Vikas GogiaLeetCode Daily Problem 502. IPO: Jun 15, 2024Given an array of minimum capitals[i] required for a projects[i], we need to find maximum profit by picking at most k projects.Jun 16Jun 16
Vikas GogiaLeetCode Daily Problem 945. Min increment to make array unique: Jun 14, 2024Given an array of a mix of unique and duplicate elements, find minimum no. of moves that can make the array consist of all unique elements…Jun 14Jun 14
Vikas GogiaLeetCode Daily Problem 2037. Min no. of moves to seat everyone: June 13, 2024We are given ’n’ seats and students positions. Given a move of increasing or decreasing of any student’s position students[j] by 1. We have…Jun 13Jun 13