Object-Oriented Programming · Optiver · Medium
Requirements Create a BalloonFestival class. init(balloonNames: list[str]) — save the unique balloon names belonging to the team. Any operation naming a balloon that was not registered must fail. balloon_ascended(timestamp, name, altitude) -> bool — move a balloon to the specified altitude. It starts this move as stable, then is checked immediately against the current wind. Return False when the timestamp is not greater than the previous operation's timestamp or when name is…
Checking your access…