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

Tis known in refined company, that choosing K things out of
N can be done in ways as many as choosing N minus K from N:
I pick K, you the remaining.
This simply states the binomial coefficient identity .
Find though a cooler bijection, where you show a knack
uncanny, of making your choices contain all K of mine.For
pedantry let K be no more than half N.

Consider a function which, for a given whole number n,
returns the number of ones required when writing out all
numbers between 0 and n. For example, f(13)=6. Notice that
f(1)=1. What is the next largest n such that f(n)=n?

Given a triangle ABC, how would you use only a compass and
straight edge to find a point P such that triangles ABP, ACP
and BCP have equal perimeters? (Assume that ABC is
constructed so that a solution does exist.)

What is the optimal size of a project team, above which
additional members do not contribute productivity equivalent
to the percentage increase in the staff size?

It's 2PM on a sunny Sunday afternoon in the Bay Area. You're
minutes from the Pacific Ocean, redwood forest hiking trails
and world class cultural attractions. What do you do?

Two pipes can fill a tank in 10 and 12 hours respectively
while third pipe will make the tank empty in 20 hours. If
all three pipes operate simultaneously, in how many hours
the tank will be filled ?

I am writing the APSRTC OUT post.so i dont know the
managerial aptitude.If any one know about this or refer any
book, please give the information to my Mail id is
narayanansg@gmail.com

345

Find the longest palendrom in a string?
Example
Input: abfgerccdedccfgfer
Output: ccdedcc
i want a solution in C/C++ language

THERE ARE 3 MIXTURES WHEN MIXED IN THE RATIO OF 3:4:5 PRICE
WAS 240.WHEN MIXED WITH 6:4:9 PRICE WAS 340.WHAT'S THE PRICE
WHEN MIXED IN 5:6:8 RATION PRICE IS

A manufacturer of chocolates makes 6 different flavors of
chocolates. The chocolates are sold in boxes of 10. How many
“different” boxes of chocolates can be made? [pu]
(NOTE: A box is considered “different” from another only if,
regardless of the order, the box contains a different number
of chocolates of at least one type)

a grandfather has 5 sons and daughters and
grandchildren.they have to be arranged in a row such that
the first 4 seats and last four seats are to be taken by
grandchildren and the grandfather would not sit adjacent to
any of the grandchildren.