Problem description Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits ...
分类:
其他好文 时间:
2018-06-01 20:41:17
阅读次数:
237
Problem description We consider a positive integer perfect, if and only if the sum of its digits is exactly 10. Given a positive integer k, your task ...
分类:
其他好文 时间:
2018-05-29 15:01:09
阅读次数:
125
Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant d ...
分类:
其他好文 时间:
2018-05-29 01:49:39
阅读次数:
109
题目描述: Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most signifi ...
分类:
其他好文 时间:
2018-05-28 22:43:08
阅读次数:
244
17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number ...
分类:
其他好文 时间:
2018-05-27 23:39:58
阅读次数:
206
Remove K Digits 题目: 给定一个Num字符串来表示一个非负的整数,移除其中k位字符,使得新生成的数字最小。 思路:将高位数字提前删除 对于leading zero需要小心处理 Largest Rectangle in Histogram Stack 里面存什么? heights中的元 ...
分类:
其他好文 时间:
2018-05-27 13:44:54
阅读次数:
122
题目: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 ...
分类:
其他好文 时间:
2018-05-26 17:56:41
阅读次数:
180
Out: n_digits: 10, n_samples 1797, n_features 64 __________________________________________________________________________________ init time inertia ...
分类:
其他好文 时间:
2018-05-24 20:45:58
阅读次数:
272
Add Two Numbers 两数之和,本位和进位的求和 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order ...
分类:
其他好文 时间:
2018-05-24 18:12:36
阅读次数:
164
402. Remove K Digits 题目:给出一个非负的整数num, 用字符串表示,去掉k个digits之后得到一个最小的新数字 思路: Zuo 生成窗口最大值数组 239. Sliding Window Maximum 给出一个整型数组arr和一个大小为w的窗口,从左向右滑动窗口,然后每一个 ...
分类:
其他好文 时间:
2018-05-21 12:29:11
阅读次数:
131