码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
1342. Number of Steps to Reduce a Number to Zero
Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, otherwis ...
分类:其他好文   时间:2020-02-10 10:02:26    阅读次数:76
【leetcode】1342. Number of Steps to Reduce a Number to Zero
题目如下: Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, ot ...
分类:其他好文   时间:2020-02-09 18:31:58    阅读次数:64
494. Target Sum
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:其他好文   时间:2020-02-06 23:22:15    阅读次数:72
leetcode922 Sort Array By Parity II
1 """ 2 Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. 3 Sort the array so that when ...
分类:其他好文   时间:2020-02-06 23:03:15    阅读次数:84
leetcode 43. Multiply Strings
题目内容 Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example: ...
分类:其他好文   时间:2020-02-03 22:31:16    阅读次数:81
LeetCode Solution-89
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 ...
分类:其他好文   时间:2020-02-03 11:39:42    阅读次数:59
leetcode 445. 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 c ...
分类:其他好文   时间:2020-02-02 15:26:42    阅读次数:87
LeetCode Solution-61
61. Rotate List Given a linked list, rotate the list to the right by k places, where k is non negative. Example 1: Example 2: 思路:首先算出链表的长度(因为平移的时候以长度为 ...
分类:其他好文   时间:2020-01-31 18:46:14    阅读次数:49
66 plus one
| 分类 leetcode | Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most signifi... ...
分类:其他好文   时间:2020-01-29 12:44:58    阅读次数:82
273. Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " ...
分类:其他好文   时间:2020-01-29 10:50:06    阅读次数:54
2271条   上一页 1 ... 4 5 6 7 8 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!