## Top Microsoft Coding Interview Questions

Topics

Company

Difficulty

Problem Title

Difficulty

Avg Time to solve

Attempted

Word Wrap

3

Easy

20 mins

64

Shortest path in an unweighted graph

6

Easy

25 mins

70

Node Level

1

Easy

15 mins

31

kth level

0

Easy

15 mins

109

Compress the String

5

Moderate

25 mins

94

Special String

1

Moderate

25 mins

23

Convert a given Binary Tree to Doubly Linked List

1

Easy

15 mins

25

Longest Mountain Subarray

1

Easy

10 mins

21

Total Number of BSTs using array elements as root node

1

Easy

15 mins

20

Buses

3

Easy

15 mins

42

Kth Smallest Element

1

Easy

15 mins

40

Swap Number Without Temporary Variable

0

Easy

15 mins

61

Minimum steps to reach target by a Knight

1

Moderate

25 mins

35

Diagonal Traversal

1

Easy

20 mins

14

Roots of a Quadratic Equation

1

Easy

15 mins

11

Find all triplets with zero sum

2

Hard

50 mins

25

Total area of overlapping rectangles

1

Easy

10 mins

11

Longest Palindromic Subsequence

0

Hard

45 mins

26

Euler’s Totient Function

0

Easy

15 mins

29

Maximum sum of two non-overlapping subarrays of a given size

7

Easy

15 mins

92

Nth Element Of Modified Fibonacci Series

0

Easy

15 mins

73

Palindrome Partitioning

0

Moderate

25 mins

54

Dice Throws

0

Moderate

35 mins

48

Reverse Linked List

1

Easy

15 mins

72

Mean Median Mode

1

Easy

10 mins

27

Word Wrap NEW

Easy

3 upvotes

Shortest path in an unweighted graph NEW

Easy

+1

6 upvotes

Node Level NEW

Easy

1 upvote

kth level NEW

Easy

0 upvotes

Compress the String NEW

Moderate

5 upvotes

Special String NEW

Moderate

1 upvote

Convert a given Binary Tree to Doubly Linked List NEW

Easy

1 upvote

Longest Mountain Subarray NEW

Easy

1 upvote

Total Number of BSTs using array elements as root node NEW

Easy

1 upvote

Buses NEW

Easy

3 upvotes

Kth Smallest Element NEW

Easy

1 upvote

Swap Number Without Temporary Variable NEW

Easy

0 upvotes

Minimum steps to reach target by a Knight NEW

Moderate

1 upvote

Diagonal Traversal NEW

Easy

1 upvote

Roots of a Quadratic Equation NEW

Easy

1 upvote

Find all triplets with zero sum NEW

Hard

+1

2 upvotes

Total area of overlapping rectangles NEW

Easy

1 upvote

Longest Palindromic Subsequence NEW

Hard

0 upvotes

Euler’s Totient Function NEW

Easy

0 upvotes

Maximum sum of two non-overlapping subarrays of a given size NEW

Easy

+1

7 upvotes

Nth Element Of Modified Fibonacci Series NEW

Easy

0 upvotes

Palindrome Partitioning NEW

Moderate

+1

0 upvotes

Dice Throws NEW

Moderate

0 upvotes

Reverse Linked List NEW

Easy

1 upvote

Mean Median Mode NEW

Easy

1 upvote