摘要: You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected hor 阅读全文
posted @ 2020-05-08 14:38 CNoodle 阅读(222) 评论(0) 推荐(0)
摘要: Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position 阅读全文
posted @ 2020-05-08 12:13 CNoodle 阅读(455) 评论(0) 推荐(0)
摘要: Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle 阅读全文
posted @ 2020-05-08 11:13 CNoodle 阅读(604) 评论(0) 推荐(0)
摘要: A website domain "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com" and 阅读全文
posted @ 2020-05-08 05:55 CNoodle 阅读(193) 评论(0) 推荐(0)
摘要: Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding t 阅读全文
posted @ 2020-05-08 04:58 CNoodle 阅读(254) 评论(0) 推荐(0)
摘要: Given an array of characters chars, compress it using the following algorithm: Begin with an empty string s. For each group of consecutive repeating c 阅读全文
posted @ 2020-05-08 02:19 CNoodle 阅读(274) 评论(0) 推荐(0)
摘要: Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not appear in  阅读全文
posted @ 2020-05-08 00:29 CNoodle 阅读(186) 评论(0) 推荐(0)