feat(elevator-system): Implement elevator simulation with MovingBox using Stack Queue #13
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new Java implementation simulating an elevator system using Stack and Queue data structures to move boxes between floors. The changes include adding new classes for the simulation, updating the README for documentation, and implementing the main logic in the driver class.
Key changes include:
New Classes and Main Logic:
java/src/data_structures/linear/stack_queue_elevator/Driver.java: Added the main driver class to simulate the elevator system, including the creation of the building, moving boxes, and elevator logic.java/src/data_structures/linear/stack_queue_elevator/MovingBox.java: Added theMovingBoxclass representing a box with attributes for reference number and target floor, along with getter and setter methods.Documentation:
java/src/data_structures/linear/stack_queue_elevator/README.md: Added a README file explaining the project overview, implementation details, algorithm, usage instructions, and time complexity analysis.