码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
[LeetCode] 39. Combination Sum
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:其他好文   时间:2020-05-31 12:44:37    阅读次数:59
[LeetCode] 40. Combination Sum II
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:其他好文   时间:2020-05-31 12:43:12    阅读次数:52
【LeetCode 力扣】1. Two Sum 两数之和 Java 解法
LeetCode的第一题,英文单词书中 Abandon 一般的存在,让我们来看一下题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. ...
分类:编程语言   时间:2020-05-31 11:10:15    阅读次数:107
11. Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:其他好文   时间:2020-05-31 00:45:36    阅读次数:52
84. Largest Rectangle in Histogram. 单调栈
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:其他好文   时间:2020-05-30 23:25:31    阅读次数:106
110. Balanced Binary Tree 110.平衡二叉树
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the lef ...
分类:其他好文   时间:2020-05-30 10:23:54    阅读次数:65
LeetCode 371. 两整数之和 Sum of Two Integers
不断更新值和进位。 class Solution { public: int getSum(int a, int b) { return b == 0 ? a : getSum(a ^ b, ((unsigned int)a & b) << 1); } }; ...
分类:其他好文   时间:2020-05-30 01:24:53    阅读次数:70
1040 Longest Symmetric String (25分)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given Is PAT&TAP symmetric?, the longest symme ...
分类:其他好文   时间:2020-05-30 01:16:17    阅读次数:60
PAT.1049 Counting Ones(排列组合)
1049 Counting Ones (30分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of th ...
分类:其他好文   时间:2020-05-29 23:43:50    阅读次数:106
Find if all numbers appear an even number of times
package _interview_question /** * Given a list/array of integers, return a boolean that states whether all numbers appear an even number of times. Exa ...
分类:移动开发   时间:2020-05-29 13:33:33    阅读次数:69
24278条   上一页 1 ... 35 36 37 38 39 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!