Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

rostskadat/fbi-mafia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fbi-mafia

Use cases

• Add (boss, subordinates, siblings) • ‎remove (boss, subordinate, siblings) • ‎count shallow (subordinates) • ‎count deep (subordinates & their subordinates)

Structures:

• Tree • ‎tree + lookup map (Id, node) • ‎relation map (boss id, subordinate id) • ‎full path map (id1, id2... Idn)

Complexity

Add Remove Count shallow Count deep
Tree medium medium medium complex
Tree+LM simple simple simple medium
Relation map medium simple simple complex
Path map medium medium simple simple

About

Coding Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published