Skip to content

Instantly share code, notes, and snippets.

@jeewamp
Created December 1, 2012 05:49
Show Gist options
  • Save jeewamp/4180717 to your computer and use it in GitHub Desktop.
Save jeewamp/4180717 to your computer and use it in GitHub Desktop.
How to represent an Adjacency List.
HashMap<Integer,ArrayList<Integer>> adjacencyList = new HashMap<Integer,ArrayList<Integer>>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment