Microsoft Online assessment part II || till july 2021

image

As I was struggling to find all the microsoft online assessment question at one place so here I have accumulated all the question that has been collected from various comments and posts . Most of the question were repeated. I will also try to update it as I get more questions relative to this.
Hope you will like it .
1.Find Sign of product of all element in an array multiplied Together.E.g: given an array like [-2,3,5,-9], return 1,0 or -1 if the product of all elements in the array is positive, 0 or negative respectively).

2.Count Visible nodes. (Count Visible Nodes in Binary Tree)

** 3. Good nodes in binary tree**
https://leetcode.com/problems/count-good-nodes-in-binary-tree/

4.Min Moves to Make String Without 3 Identical Consecutive Letters

5.given an integer, you need to insert a digit '5' to get a largest possible number

6.https://leetcode.com/discuss/interview-question/525894/Microsoft-or-OA-2020-or-m-aligned-subset

7.Minimum deletions required to make frequency of each letter unique

8.Plane seat reservation

**9.Min Cost to Get String Without 2 Identical Consecutive Letters: **
https://leetcode.com/problems/minimum-deletion-cost-to-avoid-repeating-letters/

10.Given two arrays of length N. Num and Den. Return number of ways to choose a pair of fractions that sum up to 1. Since the answer can be large provide it a modulo 1000000007.
https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/

11.Given an ipv4 address (string) and a cidr value (string) return if ip4v is a valid address in cidr range. similar :-https://leetcode.com/problems/validate-ip-address/

12.populating next right pointer
https://leetcode.com/problems/populating-next-right-pointers-in-each-node/

13.meeting room
https://leetcode.com/problems/meeting-rooms-ii/

14.rotate list
https://leetcode.com/problems/rotate-list/

15.given two arrays of integers A and B, returns the number of fair indexes such that the sum on either side of the index in both arrays are equal. similar:-https://leetcode.com/problems/find-pivot-index/

**16.Distinct path in a binary tree
**
17.A string is considered balanced when every letter in the string appears both in uppercase and lowercase
For example, CATattac is balanced (a, c, t occur in both cases). Madam is not (a, d only appear in lowercase).

https://leetcode.com/problems/unique-letter-string/

Some of the important link:-

Upvote will be appreciated.

Comments (7)