Question

What is the space complexity of storing an adjacency matrix for a graph with V vertices and E edges?

A O(V)
B O(E)
C O(V + E)
D O(V^2)
E O(E^2)
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)