Given an inverted binary tree (parent array) and node statuses (neutral, underhydrated, overhydrated), find a node to water to minimize the total penalty sum. Watering a node changes its status and…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.