
Asked in Microsoft Corporation
When a sorted array is ‘Rotated’, its last element becomes the first element and the remaining elements shift to the right. Write a function which takes an input array and returns the no. of times an array has been rotated

AnswerBot
2y
Function to find the no. of times a sorted array has been rotated.
Find the index of the minimum element in the array using binary search.
The number of times the array has been rotated is equal to the ...read more
Help your peers!
Add answer anonymously...
Top Program Manager Interview Questions Asked at Microsoft Corporation
Q. Design Bing for kids up to 10 years old.
Q. Design a voice assistant for elderly people.
Q. How would you detect and remove fake news on Facebook?
Interview Questions Asked to Program Manager at Other Companies
Top Skill-Based Questions for Microsoft Corporation Program Manager
Algorithms Interview Questions and Answers
250 Questions
Web Development Interview Questions and Answers
250 Questions
Software Development Interview Questions and Answers
250 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

