深度搜索
文章平均质量分 69
帘外雨
学生一枚
展开
-
LeetCode:419. Battleships in a Board
Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules: You receive a valid board,原创 2017-09-07 15:31:18 · 195 阅读 · 0 评论 -
LeetCode:526. Beautiful Arrangement
Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of the following is true for the ith position (1 <= i <原创 2017-09-07 20:43:15 · 287 阅读 · 0 评论