Back to problems

Design Squirrel Nut Tracker

Object-Oriented Programming · Optiver · Medium

Researchers are studying squirrels that bury nuts in underground storage locations and later recover them. Implement a SquirrelResearch tracker that models this behavior. The tracker maintains multiple storage locations. Each location contains several levels, numbered from 0 at the deepest level upward. Their capacities are based on the Fibonacci sequence (0, 1, 1, 2, 3,...), beginning with the third Fibonacci value: Level 0, the deepest level, holds 1 nut. Level 1 holds 2…

Checking your access…