Guest
BAN USER
Questions (5)
Comments (1)
Reputation 80
- 0of 0 votes
AnswersGiven an array with 10000 numbers from the range 1-10. WAP to sort them.
- Guest in India| Report Duplicate | Flag | PURGE
Microsoft - 0of 0 votes
AnswersGiven an array A and an array B. Sort all the elements of A in the order of B. Sort the remaining elements.
- Guest in India
e.g.
A = {4,2,7,6,8,9,1,3,2,5,6}
B = {6,3,4,1}
Output= {6,6,3,4,1,2,3,5,7,8,9}| Report Duplicate | Flag | PURGE
Monotype Senior Software Development Engineer Arrays - 1of 1 vote
AnswersCheck if an integer is a power of 2 or not.
- Guest in India| Report Duplicate | Flag | PURGE
Monotype Senior Software Development Engineer Bit Manipulation
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Your solution is O(n^2), think of O(n) solution.
- Guest December 08, 2014