Skip to content

Hire Method Fix Using BreadFirst Search Algorithm #21

Open
shanthanreddy7 wants to merge 3 commits intompetro-aa:mainfrom
shanthanreddy7:main
Open

Hire Method Fix Using BreadFirst Search Algorithm #21
shanthanreddy7 wants to merge 3 commits intompetro-aa:mainfrom
shanthanreddy7:main

Conversation

@shanthanreddy7
Copy link
Copy Markdown

@shanthanreddy7 shanthanreddy7 commented Apr 22, 2023

Used an Iterative Approach (Breadth First Search) Algorithm which is by using the Queue Data Structure since the CreateOrganization( ) is built like a Tree with multiple Levels .

Can Also use an Recursion(Depth First Search) but Iterative Approach is shown here and also doesn't have any space memory occupancy issue on Stack with recursion.

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