There is a safe with a 5 digit number as the key. The 4th
digit is 4 greater than the second digit, while the 3rd
digit is 3 less than the 2nd digit. The 1st digit is thrice
the last digit. There are 3 pairs whose sum is 11.

As per given conditions, there are three possible
combinations for 2nd, 3rd and 4th digits. They are (3, 0,
7) or (4, 1, 8) or (5, 2, 9)

It is given that there are 3 pairs whose sum is 11. All
possible pairs are (2, 9), (3, 8), (4, 7), (5, 6). Now
required number is 5 digit number and it contains 3 pairs
of 11. So it must not be having 0 and 1 in it. Hence, the
only possible combination for 2nd, 3rd and 4th digits is
(5, 2, 9)

Also, 1st digit is thrice the last digit. The possible
combinations are (3, 1), (6, 2) and (9, 3), out of which
only (6, 2) with (5, 2, 9) gives 3 pairs of 11. Hence, the
answer is 65292.

Is This Answer Correct ?

95 Yes

13 No

There is a safe with a 5 digit number as the key. The 4th
digit is 4 greater than the second digit..

sum should b 11
so possible combinations are (2,9),(3,8),(4,7),(5,6)
that means 0 and 1 is not there.
let no is "abcde"
now given that,
d=b+4;
c=b-3;
hence d=c+7;
hence c must be 2
hence d=9;
hence b=5;
also a=3e is given
hence a=6 & e=2.
hence number is 65292

Is This Answer Correct ?

28 Yes

3 No

There is a safe with a 5 digit number as the key. The 4th
digit is 4 greater than the second digit..

There are 5 digit
According to questions 4 th digit is greater than 2 digit and the 3 digit is 3 less than he 2 digit .
Assuming 2 digit from 0 to 9
We get the only possible numbers are
(4,1,8) and (529).
Now the 1 digit is thrice the 5 digit, that means if 1 digit is (3y) then the 5 digit is (y).
Assuming the possible numbers for y from 0 to 9 , we get the safe number as
(3,4,1,8,1)
(6,4,1,8,2)
(9,4,1,8,3)
(3,5,2,9,1)
(6,5,2,9,2)
(9,5,2,9,2)
Now there are three pair whose sum are 11 . The only possible set is (6,5,2,9,2).
Therefore the safe number is (6,5,2,9,2).

Is This Answer Correct ?

0 Yes

0 No

There is a safe with a 5 digit number as the key. The 4th
digit is 4 greater than the second digit..

Gomzi has 3 timepieces in his house - a wall clock, an alarm
clock and a wristwatch. The wristwatch is always accurate,
whereas the wall clock gains 2 minutes everyday and the
alarm clock loses 2 minutes everyday.
At exactly midnight last night, all three watches were
showing the same time.
If today is 25 July 2003, then on which date all three
clocks will show the same time again?

You have 2 identical glass bulbs with you. Bulb
manufacturer has mentioned that each bulb might withstand a
drop of 200 Feet at maximum. Your task is to find the
height at which the bulb breaks ofcourse with minimum
number of iterations.
Assume that you have 200 blocks of 1 foot each which can be
stacked one by one to create a 200 Feet structure to carry
out the test.

Pinto says, "The horse is not Black."
Sandy says, "The horse is either Brown or Grey."
Andy says, "The horse is Brown."
At least one is telling truth and at least one is lying.
Can you tell the color of the horse?

Sarika multiplied 414 by certain number and obtained 69958
as the answer. But she found that there is some error in the
answer - both the 9s in the answer are wrong and all the
other digits are correct.
Can you find the correct answer?

Given a sequence of integers, there are a few sequences
which result in balanced
binary search trees i.e., AVL trees. Write a program that
takes a sequence of integers
as input and outputs the number of such sequences that
result in the balanced binary
search trees.
Input Format:
Single line contains sequence of integers terminated by -1.
Output format:
Print the number of AVL tree possible from that input sequence.
Sample Input:
1 2 3 -1
Sample Output:
2

A thief steals half the total no of loaves of bread plus 1/2
loaf from a bakery. A second thief steals half the remaining
no of loaves plus 1/2 loaf and so on. After the 5th thief
has stolen there are no more loaves left in the bakery. What
was the total no of loaves did the bakery have at the beginning