摘要:
Given a string s containing only three types of characters: '(', ')' and '*', return true if s is valid. The following rules define a valid string: An 阅读全文
posted @ 2020-04-01 13:39
CNoodle
阅读(268)
评论(0)
推荐(0)
摘要:
You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an int 阅读全文
posted @ 2020-04-01 05:25
CNoodle
阅读(173)
评论(0)
推荐(0)
摘要:
A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and: It is the empty string, or It can 阅读全文
posted @ 2020-04-01 02:34
CNoodle
阅读(389)
评论(0)
推荐(0)
摘要:
Given an m x n matrix board where each cell is a battleship 'X' or empty '.', return the number of the battleships on board. Battleships can only be p 阅读全文
posted @ 2020-04-01 01:32
CNoodle
阅读(177)
评论(0)
推荐(0)