Suppose 4 persons a, b , c , d have to go to concert which will held in 17 minutes. there is a bridge which only 2 persons at a time can cross. its night and they have only one flashlight with them. Flashlight cannot be thrown. one person should return with the flashlight
all 4 person have different speed.
a = crosses bridge in 1 min.
b = crosses bridge in 2 min.
c = crosses bridge in 5 min.
d = crosses bridge in 10 min
how can they all reach in time?
Ex- suppose a and d crosses bridge which will take 10 mins and then d returns back with a flashlight which will make 20 mins and mission is failed.?
Submitted by: AdministratorA and B will cross the bridge. --> 2 mins
A will come back with the flashlight. --> 1 min
C and D will cross the bridge --> 10 mins
B will come back with the flashlight. --> 2 mins
A and B will cross the bridge. --> 2 mins
Total is 17 mins.
Submitted by: Administrator
A will come back with the flashlight. --> 1 min
C and D will cross the bridge --> 10 mins
B will come back with the flashlight. --> 2 mins
A and B will cross the bridge. --> 2 mins
Total is 17 mins.
Submitted by: Administrator
Read Online IBM AS400 Job Interview Questions And Answers
Top IBM AS400 Questions
☺ | Explain this error: "All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored."? |
☺ | How to retrieve RRN value in RPGLE program? |
☺ | In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening? |
☺ | Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |