980. Unique Paths III
You are given an m x n integer array grid where grid[i][j] could be: - 1 representing the starting square. There is exactly one starting square. - 2 representing the ending square. There is exactly one ending square. - 0 representing empty squares we can walk over. - -1 representing obstacles that we cannot walk over. Return the number of 4-directional walks from the starting square to the en
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start