Wednesday, July 27, 2011
Joseph Perumtation Problem
“n” people are seated around in a circle. At each step, the “m”th person is eliminated from the circle. The next iteration continues from the person next to the eliminated person. In the end, there will be only one person remaining. Given “n” and “m”, write a program to find out the person who will be remaining at the end
Labels:Data
Amazon Interview
,
Google Interview
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment