Microsoft Interview Question
1,056 Interview Reviews |
Back to all Microsoft Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Microsoft:
Write a code for finding a certain element in an unsorted array assuming element definitely exists. How can we improve the efficiency?
| Tags: | data structures, efficiency, arrays See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
to improve efficiency
sort it first : O(nlgn)
then every look-up becomes O(lgn)
Helpful Answer?
Yes |
No
Inappropriate?
Members can
answer or comment on this question
–
Join Now (It's Free) or
Sign In



0 of 0 people found this helpful
by Anonymous:
well any other answers?