A helicopter drops two trains, each on a parachute, onto a straight infinite railway line. There is an undefined distance between the two trains. Each faces the same direction, and upon landing, the parachute attached to each train falls to the ground next to the train and detaches. Each train has a microchip that controls its motion. The chips are identical. There is no way for the trains to know where they are. You need to write the code in the chip to make the trains bump into each other. Each line of code takes a single clock cycle to execute. You can use the following commands (and only these); MF - moves the train forward MB - moves the train backward IF (P) - conditional that's satisfied if the train is next to a parachute. There is no "then" to this IF statement. GOTO
7 31991Post New ASD Lab General Aptitude Interview Questions
How to select some rows from a table in oracle?
What is the reason for sudden slump in value of rupee and bourses?
Are sql database names case sensitive?
Can 4pole (3 phase+neautral )RCCB proper functioning in only 3 phase load (no neautral, no Earth) ?
Which one you will use to implement critical section? Binary Semaphore
Explain life cycle of react js component?
What are field types?
What is the use of bitwise operator?
What is doubly linked list in c++?
Does mysql need a server?
How to change replication factor of files already stored in HDFS?
Explain when are intermolecular forces the strongest?
Which is fastest collection in java?
What does 'Indemnity' term means?
What is your weakness and how will I overcome it?