← Infosys questions

Minimum moves for an injected fish to eat all other fish

Filed under Infosys

Given the sizes of fishes in an aquarium and an injected fish that can eat smaller fishes and grow, determine the minimum number of moves (adding or removing a normal fish) needed to ensure eventually…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Infosys questions

Collected from public candidate posts and coding forums. Updated Nov 2026.