Skip to content

AA Code Evaluation : Update Organization.java with functional hire() method#29

Open
nnivruth wants to merge 1 commit intompetro-aa:mainfrom
nnivruth:main
Open

AA Code Evaluation : Update Organization.java with functional hire() method#29
nnivruth wants to merge 1 commit intompetro-aa:mainfrom
nnivruth:main

Conversation

@nnivruth
Copy link
Copy Markdown

This implementation uses an AtomicInteger variable to sequentially assign employee IDs to new hires and a HashMap to store position object by title for efficient lookup O(1). Though recursion is used to populate the map, it is done only once during org creation/setup and thereafter just looked up for hiring & updating position details.

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