1 """ 2 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 3 Example 1: 4 Inp ...
分类:
其他好文 时间:
2020-02-25 00:00:16
阅读次数:
59
LeetCode 1362. Closest Divisors最接近的因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer , find the closest two integers in absolute difference w ...
分类:
编程语言 时间:
2020-02-23 20:17:07
阅读次数:
90
题目: Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the ...
分类:
编程语言 时间:
2020-02-23 19:56:52
阅读次数:
92
LeetCode 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Medium】【Python】【双指针】【滑窗】 Problem "LeetCode" Given a string consisti ...
分类:
编程语言 时间:
2020-02-23 11:20:46
阅读次数:
84
LeetCode 0034. Find First and Last Position of Element in Sorted Array在排序数组中查找元素的第一个和最后一个位置【Medium】【Python】【二分】 Problem "LeetCode" Given an array of i ...
分类:
编程语言 时间:
2020-02-23 09:45:30
阅读次数:
68
题目: Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this string is valid. We define the ...
分类:
编程语言 时间:
2020-02-22 23:46:53
阅读次数:
104
1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2020-02-22 17:20:15
阅读次数:
109
You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You need to r ...
分类:
其他好文 时间:
2020-02-22 13:33:15
阅读次数:
59
1 """ 2 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of ...
分类:
其他好文 时间:
2020-02-22 00:41:15
阅读次数:
83
题目: In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes ...
分类:
编程语言 时间:
2020-02-21 22:42:00
阅读次数:
81