上一页 1 ··· 3 4 5 6 7
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 阅读全文
posted @ 2020-08-05 05:22 little_veggie 阅读(73) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", 阅读全文
posted @ 2020-08-05 03:37 little_veggie 阅读(184) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2020-08-04 12:07 little_veggie 阅读(84) 评论(0) 推荐(0)
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2020-08-04 11:19 little_veggie 阅读(82) 评论(0) 推荐(0)
摘要: Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme 阅读全文
posted @ 2020-08-04 10:38 little_veggie 阅读(93) 评论(0) 推荐(0)
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2020-08-04 09:40 little_veggie 阅读(85) 评论(0) 推荐(0)
摘要: There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example, to take course 0 you have t 阅读全文
posted @ 2020-07-31 11:06 little_veggie 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7