Pergunta de entrevista da empresa Tata Consultancy Services

Elephant and Bananas puzzle problem question ?

Resposta da entrevista

Sigiloso

9 de out. de 2024

First, realize that if you take 1000 bananas and walk 1000 kilometers, you arrive with no banana at all. And the elephant is stuck in city B as there is no banana left for return journey. So the elephant needs to travel shorter distances or we can say that we need to subdivide distances.