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
题目如下: 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
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
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
题目内容 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
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
题目内容 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
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
| 分类 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
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