Edge List to Adjacency List
Easy
Graph Basics
Print the adjacency list of an undirected graph: for each node 1..n print 'node: neighbours' with neighbours in increasing order (nothing after the colon if none).
Constraints
1 <= n <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.