Microsoft Interview Report
- 0of 0 votes
AnswersGiven a time of day, write a function that returns the angle between the hour hand and the minute hand. For simplicity, you can create your own basic Time object to be used as a parameter for your function.
- nimbus January 17, 2012 in United States for Windows Live| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer C# - 0of 0 votes
AnswersAssume you already have a function that returns a random integer between 0 and integer max (2^32). Create a random number generator that will return an integer between a user-specified range R1 and R2. You can assume that R1 < R2.
- nimbus January 17, 2012 in United States for Windows Live| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer C# - 0of 0 votes
AnswersGiven a sequence of integers corresponding to a stock price over a period of time, write a function that will find the best day to buy and the best day to sell that will yield the most profit.
- nimbus January 17, 2012 in United States for Windows Live| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersLets say you have a room with 100 doors in it. Initially, all of these doors are open. You have 100 people that will be entering the room. The 1st person toggles every door, 2nd person toggles every other door, 3rd toggles every 3rd door, ... , nth person toggles every nth door. How would you determine the state of all 100 doors after all 100 people have entered the room?
- nimbus January 17, 2012 in United States for Windows Live| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Brain Teasers