LIKE CODING

Showing posts with label BFS. Show all posts
Showing posts with label BFS. Show all posts
Monday, December 14, 2015

LeetCode [317] Shortest Distance from All Buildings

›
317. Shortest Distance from All Buildings Hard 874 56 Add to List Share You want to build a house on an  empty  land which reaches all buil...
Saturday, November 28, 2015

LeetCode [310] Minimum Height Trees

›
Ref [1] https://leetcode.com/problems/minimum-height-trees/ OJ [2] https://leetcode.com/discuss/71656/c-solution-o-n-time-o-n-space
Sunday, November 8, 2015

LeetCode [302] Smallest Rectangle Enclosing Black Pixels

›
Ref [1] https://leetcode.com/problems/smallest-rectangle-enclosing-black-pixels/ [2]  https://leetcode.com/discuss/68246/c-java-pyth...
Thursday, November 5, 2015

LeetCode [301] Remove Invalid Parentheses

›
301. Remove Invalid Parentheses Hard 1678 71 Favorite Share Remove the minimum number of invalid parentheses in order to make t...
Thursday, September 24, 2015

LeetCode [286] Walls and Gates

›
286. Walls and Gates Medium 1327 16 Add to List Share You are given a  m x n  2D grid initialized with these three possible values. -1  -...
Monday, August 17, 2015

LeetCode [261] Graph Valid Tree

›
Ref [1]  https://leetcode.com/problems/graph-valid-tree/ OJ
Saturday, April 11, 2015

LeetCode [200] Number of Islands

›
  200.   Number of Islands Medium 6683 216 Add to List Share Given an  m x n  2d  grid  map of  '1' s (land) and  '0' s (wat...
›
Home
View web version
Powered by Blogger.