三刷使用Dijkstra算法,效率不如BFS,按理说不应该这样,还可以可以继续改进,因为BFS是Dijkstra的降级。 原来leetcode后端是用python写的!以后用pycharm写python或者intelij idea写java来debug也不错! dfs_wa BFS dijkstra 542. 01 Matrix https://leetcode.com/problems/01-matrix/description/ View Code 一刷使用朴素...
179 Largest Number(Comparable, python.sort()) 215 Kth Largest Element in an Array(Quick Select) 220 Contains Duplicate III(Bucket Sorting) 268 Missing Number 287 Find the Duplicate Number 315 Count of Smaller Numbers After Self 324 Wiggle Sort II(Virtual Index) 327 Count of Range Sum(Binary ...