Microsoft Interview Report
- 1of 1 vote
AnswersGiven an unsorted array of integers with duplicate numbers, write the most efficient code to print out unique values in the array. Give the big-o for your algorithm. What are the pros and cons (in the context of hardware usage) of your implementation?
- IHE February 10, 2012 in United States| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven a function
- IHE February 10, 2012 in United States
int strcspn(string find, string src)
code the most efficient way to return the index of first character that matches in the find string of any character in the src string.
example:
find="ttbbcca"
src="ggabba"| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.