New answers tagged

1

There are many reasonable approaches, but one is an adjacency list representation. You can use any convenient data structure for the adjacency list; I anticipate that a dictionary (ordered map) will be useful.


Top 50 recent answers are included