码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
leetcode279 Perfect Squares
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最接近的因数【Python】
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
LeetCode 687. Longest Univalue Path 最长同值路径 (C++/Java)
题目: 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包含所有三种字符的子字符串数目【Python】
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. 在排序数组中查找元素的第一个和最后一个位置【Python】
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
LeetCode 678. Valid Parenthesis String 有效的括号字符串 (C++/Java)
题目: 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
leetcode42 Trapping Rain Water
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
1301. Number of Paths with Max Score
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
leetcode16 3Sum Closest
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
LeetCode 684. Redundant Connection 冗余连接(C++/Java)
题目: 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
24278条   上一页 1 ... 65 66 67 68 69 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!