Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Design a simulation for an alien base attack game. The alien base is represented by the interval [0, n], where n is a positive integer. Each attack is executed at a coordinate x and destroys the segment [x, x+1] of the base. After a series of attacks, determine whether the entire base has been destroyed.

Implement AlienBaseAttack class that supports the following operations:

Test Cases
Input
Output
Expected