A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2016-09-09 06:34:47
阅读次数:
186
原题链接在这里:https://leetcode.com/problems/plus-one-linked-list/ 题目: Given a non-negative number represented as a singly linked list of digits, plus one to ...
分类:
其他好文 时间:
2016-09-08 15:52:21
阅读次数:
283
Problem F Biggest Number You have a maze with obstacles and non-zero digits in it: You can start from any square, walk in the maze, and finally stop a ...
分类:
其他好文 时间:
2016-09-05 08:01:14
阅读次数:
165
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 like: ...
分类:
其他好文 时间:
2016-09-04 23:53:01
阅读次数:
166
Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. Th ...
分类:
其他好文 时间:
2016-09-04 10:09:38
阅读次数:
187
357.CountNumberswithUniqueDigitsGivenanon-negativeintegern,countallnumberswithuniquedigits,x,where0≤x<10n.Example:Givenn=2,return91.(Theanswershouldbethetotalnumbersintherangeof0≤x<100,excluding[11,22,33,44,55,66,77,88,99])Hint:Adirectwayistousetheb..
分类:
其他好文 时间:
2016-09-02 01:02:14
阅读次数:
141
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have you thought about this? Here are some good questions t ...
分类:
其他好文 时间:
2016-09-01 10:44:47
阅读次数:
120
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 like: ...
分类:
其他好文 时间:
2016-08-31 22:27:09
阅读次数:
144
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions ...
分类:
其他好文 时间:
2016-08-31 22:05:45
阅读次数:
124
从文件中读取数据 文本文件可以储存的数据量多的难以置信,每当需要分析和修改存储在文件中的信息时,读取文件都会很有用,对数据分析应用程序来说尤其如此。 例如 你可以读取一个文本文件的内容,重新设置这些数据的格式并将其写入文件,让浏览器能显示这些内容 读取整个文件 先创建一个文件 pi_digits.t ...
分类:
编程语言 时间:
2016-08-31 20:34:57
阅读次数:
139