上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 64 下一页
摘要: Every email consists of a local name and a domain name, separated by the @ sign. For example, in alice@leetcode.com, alice is the local name, and leet 阅读全文
posted @ 2020-05-27 05:24 CNoodle 阅读(185) 评论(0) 推荐(0)
摘要: Given an integer array nums and an integer k, return the number of non-empty subarrays that have a sum divisible by k. A subarray is a contiguous part 阅读全文
posted @ 2020-05-27 01:09 CNoodle 阅读(241) 评论(0) 推荐(0)
摘要: Given an array of integers preorder, which represents the preorder traversal of a BST (i.e., binary search tree), construct the tree and return its ro 阅读全文
posted @ 2020-05-26 06:19 CNoodle 阅读(185) 评论(0) 推荐(0)
摘要: You have intercepted a secret message encoded as a string of numbers. The message is decoded via the following mapping: "1" -> 'A' "2" -> 'B' ... "25" 阅读全文
posted @ 2020-05-23 05:53 CNoodle 阅读(446) 评论(0) 推荐(0)
摘要: Given two integer arrays inorder and postorder where inorder is the inorder traversal of a binary tree and postorder is the postorder traversal of the 阅读全文
posted @ 2020-05-22 11:30 CNoodle 阅读(593) 评论(0) 推荐(0)
摘要: Given a m * n matrix of ones and zeros, return how many square submatrices have all ones. Example 1: Input: matrix = [ [0,1,1,1], [1,1,1,1], [0,1,1,1] 阅读全文
posted @ 2020-05-22 02:17 CNoodle 阅读(626) 评论(0) 推荐(0)
摘要: Given a string num that contains only digits and an integer target, return all possibilities to add the binary operators '+', '-', or '*' between the 阅读全文
posted @ 2020-05-21 09:05 CNoodle 阅读(374) 评论(0) 推荐(0)
摘要: Design an algorithm that collects daily price quotes for some stock and returns the span of that stock's price for the current day. The span of the st 阅读全文
posted @ 2020-05-20 07:13 CNoodle 阅读(173) 评论(0) 推荐(0)
摘要: Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, 'a', 'e', 'i', 'o', and 'u' must 阅读全文
posted @ 2020-05-20 03:44 CNoodle 阅读(448) 评论(0) 推荐(0)
摘要: Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1's permutatio 阅读全文
posted @ 2020-05-19 15:06 CNoodle 阅读(304) 评论(0) 推荐(0)
摘要: 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 answer wil 阅读全文
posted @ 2020-05-18 11:51 CNoodle 阅读(461) 评论(0) 推荐(0)
摘要: Given the array favoriteCompanies where favoriteCompanies[i] is the list of favorites companies for the ith person (indexed from 0). Return the indice 阅读全文
posted @ 2020-05-17 13:54 CNoodle 阅读(218) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2020-05-17 05:51 CNoodle 阅读(226) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2020-05-17 03:32 CNoodle 阅读(338) 评论(0) 推荐(0)
摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or anoth 阅读全文
posted @ 2020-05-16 11:52 CNoodle 阅读(473) 评论(0) 推荐(0)
摘要: Given a circular integer array nums of length n, return the maximum possible sum of a non-empty subarray of nums. A circular array means the end of th 阅读全文
posted @ 2020-05-16 07:15 CNoodle 阅读(322) 评论(0) 推荐(0)
摘要: Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key's value at 阅读全文
posted @ 2020-05-16 04:30 CNoodle 阅读(288) 评论(0) 推荐(0)
摘要: Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration whe 阅读全文
posted @ 2020-05-15 14:24 CNoodle 阅读(504) 评论(0) 推荐(0)
摘要: In an alien language, surprisingly, they also use English lowercase letters, but possibly in a different order. The order of the alphabet is some perm 阅读全文
posted @ 2020-05-15 11:56 CNoodle 阅读(261) 评论(0) 推荐(0)
摘要: 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: Input: matri 阅读全文
posted @ 2020-05-15 07:29 CNoodle 阅读(537) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 64 下一页