码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
258. Add Digits【规律】
2017/3/16 22:36:02 Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, t ...
分类:其他好文   时间:2017-03-27 00:27:48    阅读次数:151
leetcode 204. Count Primes 找出素数的个数 ---------- java
Description: Count the number of prime numbers less than a non-negative number, n. 找出小于n的素数个数。 1、用最淳朴的算法果然超时了。 2、埃拉托斯特尼筛法Sieve of Eratosthenes 我们从2开始遍 ...
分类:编程语言   时间:2017-03-24 19:05:11    阅读次数:176
Leetcode 530. Minimum Absolute Difference in BST
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at ...
分类:其他好文   时间:2017-03-23 23:28:32    阅读次数:192
11. Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo ...
分类:其他好文   时间:2017-03-21 10:59:56    阅读次数:133
55. Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:其他好文   时间:2017-03-17 22:17:31    阅读次数:160
LeetCode:Continuous Subarray Sum
523. Continuous Subarray Sum Add to List Given a list of non-negative numbers and a target integer k, write a function to check if the array has a con ...
分类:其他好文   时间:2017-03-14 13:39:48    阅读次数:199
2、Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:其他好文   时间:2017-03-10 17:31:28    阅读次数:185
[leetcode sort]179. Largest Number
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n ...
分类:其他好文   时间:2017-03-08 22:40:42    阅读次数:176
BZOJ 2595: [Wc2008]游览计划 [DP 状压 斯坦纳树 spfa]【学习笔记】
传送门 题意:略 论文 《SPFA算法的优化及应用》 http://www.cnblogs.com/lazycal/p/bzoj-2595.html 本题的核心就是求斯坦纳树: Steiner Tree: Given an undirected graph with non-negative edg ...
分类:其他好文   时间:2017-03-07 19:01:59    阅读次数:269
container-with-most-water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo ...
分类:其他好文   时间:2017-03-06 23:31:05    阅读次数:161
2271条   上一页 1 ... 70 71 72 73 74 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!