码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
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 ...
分类:其他好文   时间:2018-05-07 19:55:17    阅读次数:153
258. Add Digits 数位相加到只剩一位数
[抄题]: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is ...
分类:其他好文   时间:2018-05-01 17:47:28    阅读次数:127
LeetCode-Microsoft-Add Two Numbers II
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:其他好文   时间:2018-04-29 23:17:21    阅读次数:247
1005. Spell It Right(20)—PAT 甲级
Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:其他好文   时间:2018-04-29 22:17:27    阅读次数:262
LeetCode-Microsoft-Remove K Digits
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:其他好文   时间:2018-04-29 11:41:03    阅读次数:147
leetcode11 装最多水的容器(要学会简化问题)
简化问题后的代码 /* 原问题: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such t ...
分类:其他好文   时间:2018-04-28 23:51:23    阅读次数:218
69. Sqrt(x) 求根号再取整
[抄题]: Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is ...
分类:其他好文   时间:2018-04-27 22:55:28    阅读次数:158
动态规划-Predict the Winner
2018-04-22 19:19:47 问题描述: Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array foll ...
分类:Windows程序   时间:2018-04-22 21:57:58    阅读次数:261
89. Gray Code(公式题)
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:其他好文   时间:2018-04-22 19:56:51    阅读次数:181
LeetCode OJ 89. Gray Code
题目 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non negative integer n representing the total ...
分类:其他好文   时间:2018-04-19 12:04:34    阅读次数:125
2271条   上一页 1 ... 36 37 38 39 40 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!