## Recent Interview Questions

More Questions »- 0of 0 votes
Given 2 set of arrays of size N(sorted +ve integers ) find the median of the resultant array of size 2N.

(dont even think of sorting the two arrays in a third array , though u can sort them. Try something better than order NLogN

- 0of 0 votes
A game is being played with the following rules :

- The first player says 1, the next 2 and so on.

- If a number is a multiple of 4 or 7 then that number is skipped and the next number is spoken. However if the number is a multiple of both 4 and 7 then the number is not skipped.

Define a function which taken a number n as input and returns the nth number which will be spoken.

nthNumber(10) = 15 (the order of numbers spoken is 1,2,3,5,6,9,10,11,13,15)

- -1of 1 vote
Why is returning pointer to a node in linked list from a pointer is unsafe and sometimes gives wrong answers.

- 0of 0 votes
Given an array of strings as input, return an array of all strings that have repeated chars that appear together. For e.g. in "hello" l and in "summer" s is a repeated char that appears together. However in "robot" o is not a repeated char as it does not appear together.

repeatChars({"hello","robot","summer","elephant"}) = {"hello","summer"}

- 1of 1 vote
1 represent A, 2 rep B etc and 26 rep Z. Given a number, find number of possible decoding for this number. No need to consider number starts with zero. Eg: input – 1234, output – 3(ABCD, AWD, LCD)