摘要: # Content Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example 1: Input: mat 阅读全文
posted @ 2023-08-25 11:22 shea24 阅读(12) 评论(0) 推荐(0)
摘要: # Content You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint s 阅读全文
posted @ 2023-08-25 09:25 shea24 阅读(8) 评论(0) 推荐(0)
摘要: # Content Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so that the 阅读全文
posted @ 2023-08-24 16:34 shea24 阅读(13) 评论(0) 推荐(0)
摘要: # Content Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dict 阅读全文
posted @ 2023-08-24 15:36 shea24 阅读(18) 评论(0) 推荐(0)
摘要: # Content A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can onl 阅读全文
posted @ 2023-08-24 15:36 shea24 阅读(23) 评论(0) 推荐(0)
摘要: # Content You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a s 阅读全文
posted @ 2023-08-23 15:14 shea24 阅读(15) 评论(0) 推荐(0)
摘要: # Content Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 t 阅读全文
posted @ 2023-08-23 14:54 shea24 阅读(8) 评论(0) 推荐(0)
摘要: # Content Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three 阅读全文
posted @ 2023-08-23 08:26 shea24 阅读(10) 评论(0) 推荐(0)
摘要: # Content Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: In 阅读全文
posted @ 2023-08-23 08:22 shea24 阅读(19) 评论(0) 推荐(0)
摘要: # Content You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can 阅读全文
posted @ 2023-08-18 15:28 shea24 阅读(10) 评论(0) 推荐(0)