GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Infosys  >  General

 Print  |  
Question:  You have 12 lit oil in my container. And 5, 7 lit weights. So how can u give 6lit oil to me.



November 11, 2005 07:06:34 #9
 M.UGANDHARKUMAR   Member Since: Visitor    Total Comments: N/A 

RE: You have 12 lit oil in my container. And 5, 7 lit ...
 
Its very simple answer & very easy. Take oil into 7lt and pour into 5lt now this 5lt is poured into 12lt vessel the balance in the 7lt vessel is 2lt and it is poured into 5lt then take 7lt from vessel and pour into remaining of 5 lt vessel this goes as12 7lt 5lt full empty 2lt full(this is poured back into 12lt vessel) empty 2lt 7lt 2lt 4lt full(poured back into 12lt vessel) empty 4lt 7lt 4lt] 6lt (ans) 5lt
     

 

Back To Question