change to adjList to save space, but last sample WA