Skip to content

AzySir/EmployeeHierarchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Challenge - Scope Of Project

Below is employee data of a small company.
It represents the hierarchical relationship among employees. CEO of the company doesn't have a manager.
EmployeeNameIdManagerId
Alan100150
Martin220100
Jamie150
Alex275100
Steve400150
David190400

Design a suitable representation of this data. Feel free to choose any database (RDBMS, inmemory database etc), file system or even a data structure like List or Map. Then write code (in any language and framework) that displays the organisation hierarchy as below:

Jamie
Alan
Matin
Alex
Steve
David

The result can be simply displayed on the console, or HTML page or even a file; whatever suits you.
Try to cover all the possible scenarios, for example an employee with no manager, a manager who is not valid employee; etc.
Pay more attention on writing the actual logic of representing the employee tabular data into the hierarchical format.


Run Project

The project was built using C#. The Main.cs is the beginning of the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages