Neetcode Spaced Repetition System

286. Walls And Gates

Medium

Graphs

Optimal Complexity

Time

O(m * n)

Space

O(m * n)

Start First Attempt