Skip to content

Commit 185d728

Browse files
authored
Merge pull request #15 from jayanthchandra/docs/Msoft
Add Interview Question - Microsoft
2 parents 013b90c + 3b58af4 commit 185d728

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎CompanyWise/Microsoft.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# Microsoft
2+
23
* [Count number of distinct elements of size k](https://practice.geeksforgeeks.org/problems/count-distinct-elements-in-every-window/1)
4+
5+
* Given an array of numbers, find the length of the longest increasing subsequence in the array. The subsequence does not necessarily have to be contiguous. For example, given the array [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15], the longest increasing subsequence has length 6: it is 0, 2, 6, 9, 11, 15.
6+
7+
* You have an N by N board. Write a function that, given N, returns the number of possible arrangements of the board where N queens can be placed on the board without threatening each other, i.e. no two queens share the same row, column, or diagonal.
8+
9+
* Compute the running median of a sequence of numbers. That is, given a stream of numbers, print out the median of the list so far on each new element.

0 commit comments

Comments
 (0)