Escolar Documentos
Profissional Documentos
Cultura Documentos
Programming Challenge
Question 4:-
An array of size 100 contain 100 number from 1 to 100 in random order. One number gets
replaced by an another number from 1 to 100 except that number.
1. Find the missing number.
2. Find the duplicate number.
Question 5:-
Suppose you are provided with N number of atoms. Whenever a neutron hits the atom it
disintegrate the atom into 3 more neutrons, these neutrons will again react with more atoms
which are present and again creates 3 more neutrons. The process goes on unless no atom is
left. Calculate the number of neutrons left at the end ? (Assume first neutron is always provided)
For Ex – From above diagram, 3 atoms are there and number of neutrons remaining in the end
is 7, so answer is 7.
Input –
First Input (K) – Number of time atom input should be taken
K th input – Number of atoms
Ex –
INPUT OUTPUT
3
3 7
4 9
7 15
Question 2 :-
If any clarification:
whats app / call: 9902 521576
email:- apremi@gmail.com, agarwa.govind@live.com