[Leetcode] 1360. Number of Days Between Two Dates

Description Write a program to count the number of days between two dates. The two dates are given as strings, their format is YYYY-MM-DD as shown in
Leetcode 2020年02月26日 4次浏览

[Leetcode] 1361. Validate Binary Tree Nodes

Description You have n binary tree nodes numbered from 0 to n - 1 where node i has two children leftChild[i] and rightChild[i], return true if and onl
Leetcode 2020年02月26日 3次浏览

[Leetcode] 1362. Closest Divisors

Description Given an integer num, find the closest two integers in absolute difference whose product equals num + 1 or num + 2. Return the two integer
Leetcode 2020年02月25日 13次浏览

[Leetcode] 1363. Largest Multiple of Three

Description Given an integer array of digits, return the largest multiple of three that can be formed by concatenating some of the given digits in any
Leetcode 2020年02月24日 76次浏览

【Leetcode】汇总 持续更新

Leetcode all in one.
Leetcode 2020年02月24日 45次浏览

[Leetcode] 139. Word Break | 单词拆分

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ
Leetcode 2020年02月13日 36次浏览

[Leetcode] 221. Maximal Square | 最大正方形

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
Leetcode 2020年02月09日 28次浏览

[Leetcode] 279. Perfect Squares | 完全平方数

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O
Leetcode 2020年02月08日 20次浏览

[Leetcode] 股票买卖问题总结

本篇文章主要针对以下问题: 121. Best Time to Buy and Sell Stock 122. Best Time to Buy and Sell Stock II 123. Best Time to Buy and Sell Stock III 188. Best Time to
Leetcode 2020年02月06日 30次浏览

[Leetcode] 322. Coin Change | 零钱兑换

You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee
Leetcode 2020年02月05日 30次浏览