代码改变世界

阅读排行榜

[LeetCode] 130. Surrounded Regions_Medium tag: DFS/BFS

2018-08-08 00:09 by Johnson_强生仔仔, 256 阅读, 收藏,
摘要: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in 阅读全文

[LeetCode] 47. Permutations II_Medium tag: DFS, backtracking

2019-05-24 09:35 by Johnson_强生仔仔, 255 阅读, 收藏,
摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, 阅读全文

[LeetCode] 455. Assign Cookies_Easy tag: Sort

2018-08-19 05:10 by Johnson_强生仔仔, 255 阅读, 收藏,
摘要: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g 阅读全文

[LeetCode] 101. Symmetric Tree_ Easy tag: BFS

2018-07-06 00:31 by Johnson_强生仔仔, 254 阅读, 收藏,
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文

[LeetCode] 70. Climbing Stairs_ Easy tag: Dynamic Programming

2019-04-23 09:59 by Johnson_强生仔仔, 253 阅读, 收藏,
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 78 下一页