``` 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 m... ...
分类:
其他好文 时间:
2019-01-16 13:13:05
阅读次数:
146
一、题目要求 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 ...
分类:
其他好文 时间:
2019-01-13 23:32:15
阅读次数:
324
一、使用非负最小二乘法 "Non negative matrix factorisation using non negative least squares" 问题 给定一个矩阵$A$,将其分解成两个非负的因子: $$ A_{M \times N} \approx W_{M \times K} \ ...
分类:
其他好文 时间:
2019-01-13 16:06:10
阅读次数:
177
Unlucky year in Berland is such a year that its number n can be represented as n?=?xa?+?yb, where a and b are non-negative integer numbers. For exampl ...
分类:
其他好文 时间:
2019-01-11 22:14:10
阅读次数:
165
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:
其他好文 时间:
2019-01-11 14:19:58
阅读次数:
189
题目如下: Given two non-negative integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. Return a list o ...
分类:
其他好文 时间:
2019-01-07 17:33:22
阅读次数:
151
970. Powerful Integers Given two non-negative integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0 ...
分类:
其他好文 时间:
2019-01-06 13:36:04
阅读次数:
151
要死要死,第一题竟然错误8次,心态崩了呀,自己没有考虑清楚,STL用的也不是很熟,一直犯错。 第二题也是在室友的帮助下完成的,心态崩了。 970. Powerful Integers 970. Powerful Integers Given two non-negative integers x a ...
分类:
其他好文 时间:
2019-01-06 13:33:00
阅读次数:
136
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 ...
分类:
其他好文 时间:
2019-01-06 11:53:55
阅读次数:
193
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 代码的主要思路就是一位一位相加。具体代码实现过程如下。 但是关注了一下,评论区大神的 ...
分类:
其他好文 时间:
2019-01-03 12:02:04
阅读次数:
183