Skip to content

Refactor DesignParkingSystem1603: move to proper package structure and add tests#51

Merged
kobukuro merged 1 commit intomainfrom
feat/design-parking-system
Mar 17, 2026
Merged

Refactor DesignParkingSystem1603: move to proper package structure and add tests#51
kobukuro merged 1 commit intomainfrom
feat/design-parking-system

Conversation

@kobukuro
Copy link
Owner

  • Delete old ParkingSystem1603.java from src/ directory
  • Move implementation to src/main/java/com/leetcode/easy/DesignParkingSystem1603.java
  • Use HashMap to track available parking spaces for each car type
  • Car types: 1 (big), 2 (medium), 3 (small)
  • addCar() returns true if space available, false otherwise
  • Add JUnit test for LeetCode example 1 with assertTrue/assertFalse

…d add tests

 - Delete old ParkingSystem1603.java from src/ directory
 - Move implementation to src/main/java/com/leetcode/easy/DesignParkingSystem1603.java
 - Use HashMap to track available parking spaces for each car type
 - Car types: 1 (big), 2 (medium), 3 (small)
 - addCar() returns true if space available, false otherwise
 - Add JUnit test for LeetCode example 1 with assertTrue/assertFalse
@kobukuro kobukuro merged commit 710157e into main Mar 17, 2026
1 check passed
@kobukuro kobukuro deleted the feat/design-parking-system branch March 17, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant