There were 100members who are standing in circle form with numbered on them like 1, 2,3 upto 100. If number 1 has a knife and killed the next one right behind him and give it number 3 likewise it contines upto 100.Then who will be left if this process repeated?
Answers were Sorted based on User's Feedback
Answer / vasanthvicky
After 1st round:
1,3,5,7,9⋯99
1,3,5,7,9⋯99
2nd round:
1,5,9,13⋯97
1,5,9,13⋯97
3rd round:
1,9,17,25⋯97
1,9,17,25⋯97
4th round:
9,25,41,57,73,89
9,25,41,57,73,89
5th round:
9,41,73
9,41,73
6th round:
9,73
9,73
And 73 kills 9 ultimately. :
| Is This Answer Correct ? | 7 Yes | 0 No |
can anyone tell me the program to compare two files and write matching records to a file and unmatched to another in mainframe.
What are Aggregate Functions?
A train can travel 50% faster than a car. Both start from point A at the same time and reach point B 75 kms away from A at the same time. On the way, however, the train lost about 12.5 minutes while stopping at the stations. The speed of the car is
How to determine Shipping point?
Compare two strings character by character in qtp
HOW to click on elements under moving banner, in selenium webdriver
What is the difference between Requirement type Determination and Schedule line category determination ?
How does a flocking-based steering system work? What are the components of a flocking-based steering system, and how are they combined? When does flocking-based steering break down or produce undesirable results? Are there any performance implications of the standard flocking model as described by Craig Reynolds, and if so, what are some ways to address them?
Explain Inter company Sales process
You're in charge of implementing a stealth game similar to Thief: The Dark Project, and you need guards in your game that have imperfect vision and hearing and inhabit dimly-lit castles, and they can search the area for the player if they think there's an intruder around. How do you model the sensory systems of these guards, and how do you aggregate auditory, visual, and other kinds of stimuli in this system? How do you implement the various alert states for the guards, and why?
Explain Pricing Determination
What's the difference between a finite state machine (FSM) and a hierarchical finite state machine (HFSM)? Give an example of a hierarchical state machine with functionality that you could not easily replicate in a non-hierarchical FSM.
Software (196929)
Sciences (12521)
Engineering (38023)
Business Management (7372)
Accounting (11552)
Advertising Media (662)
Architecture Design (207)
Call Centre (2482)
Fashion Modelling (332)
Government (17383)
Law (806)
Tourism Hotel (377)
Everything Else (2322)
Military Police (160)
Skills Abilities (0)
Aptitude Questions (4305)
Placement Papers (705)
Certifications (3752)
Visa Interview Questions (2231)
Code Snippets (1098)
Entrance Exams (862)
ERRORS (16636)