Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Given n = 13, Retur ...
分类:
其他好文 时间:
2016-09-01 07:05:37
阅读次数:
186
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example:Given n = 13,Return ...
分类:
其他好文 时间:
2016-09-01 00:13:41
阅读次数:
102
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
tr作用:可搭配集对应字符对字符的转换和删除集对应字符[:alnum:]:字母和数字[:alpha:]:字母[:cntrl:]:控制(非打印)字符[:digit:]:数字[:graph:]:图形字符[:lower:]:小写字母[:print:]:可打印字符[:punct:]:标点符号[:space:]:空白字符[:upper:]:大写字母[:xdigit:..
分类:
其他好文 时间:
2016-08-25 22:03:20
阅读次数:
361
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2016-08-23 22:10:45
阅读次数:
130
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest ...
分类:
其他好文 时间:
2016-08-22 18:16:49
阅读次数:
165
Turing equation
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
The fight goes on, whether to store numbers starting with their most significant digit or their least significant digit. Sometime...
分类:
其他好文 时间:
2016-08-22 12:39:48
阅读次数:
150
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a ...
分类:
其他好文 时间:
2016-08-22 07:08:14
阅读次数:
168
电脑的发展历史 电脑的学名叫计算机,电脑是用来做计算的。在古时候,人们最早使用的计算工具可能是手指,英文单词“digit”既有“数字”的意思,又有“手指“的意思。古人用石头打猎,所以还有可能是石头来辅助计算。 缺点:手指和石头太低效了 后来出现了”结绳 “记事。 缺点:结绳慢,绳子还有长度限制。 又 ...
分类:
编程语言 时间:
2016-08-18 23:21:05
阅读次数:
322
课后练习1、编写脚本/root/bin/systeminfo.sh,显示当前主机系统信息,包括主机名,IPv4地址,操作系统版本,内核版本,CPU型号,内存大小,硬盘大校#!/bin/bash
echoHostname:`hostname`
echoIPaddress:`ifconfig|egrep-o"[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3..
分类:
其他好文 时间:
2016-08-14 14:48:54
阅读次数:
274