Optimized DFS in Leetcode 01 matrix problem

前端 未结 0 1818
既然无缘
既然无缘 2021-01-12 14:32

I\'m trying to solve 01 matrix problem https://leetcode.com/problems/01-matrix/ in LeetCode using DFS. I got a time limit exceeded with my naive DFS solution. I optimized it

相关标签:
回答
  • 消灭零回复
提交回复
热议问题