摘要: You are given a map in form of a two dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(100) 评论(0) 推荐(0)
摘要: A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(150) 评论(0) 推荐(0)
摘要: Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock's price for the current day. The span 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(237) 评论(0) 推荐(0)
摘要: 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 ass 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(145) 评论(0) 推荐(0)