How to Build linear structure from tree structure? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to Build linear structure from tree structure?

How to Build hierarchy of employees when on The begining I have Their tree structure. Each employer have list of his subordinate. https://code.sololearn.com/c6P1iKEh2A1M/?ref=app

7th Apr 2018, 1:48 PM
Adrian Sieradzan
1 Réponse
+ 4
First you need to think about the relation between employer and subordinate to design your application. This will help you to get started: https://www.geeksforgeeks.org/association-composition-aggregation-java/
12th Apr 2018, 4:45 PM
Tashi N
Tashi N - avatar