Q31medium
Which graph representation is most memory-efficient for a Sparse Graph (a graph with very few edges compared to vertices)?
Topic-wise practice questions for Data Structures & Algorithms. Test your knowledge, check solutions on demand, and pace your preparation.
Pop(), Push(30), Peek().
for (int i = 0; i < n; i++) {
for (int j = 0; j < 100; j++) {
print(i, j);
}
}