The Kobe series has long been one of my favorite signature lines in the basketball shoe industry. The first pair of basketball shoes that I bought on ...
分类:
其他好文 时间:
2017-08-18 11:15:10
阅读次数:
169
The key of this problem is to think of using Stack ...
分类:
其他好文 时间:
2017-08-16 23:15:56
阅读次数:
224
Engineering Management 工程師面對工作或挑戰時,可應用以下法則一步一步把工作規管和實施。 1. Planning 計劃 2. Organization 組織 3. Control 控制 4. Leading 帶領 Planning 計劃 凡事起頭難,皆因摸不清方向或不知從何入手 ...
分类:
其他好文 时间:
2017-08-09 10:09:19
阅读次数:
115
Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 2: ...
分类:
其他好文 时间:
2017-08-08 16:50:05
阅读次数:
186
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 contai ...
分类:
其他好文 时间:
2017-08-03 18:48:43
阅读次数:
121
为什么须要相互排斥锁? 在多任务操作系统中,同一时候执行的多个任务可能都须要使用同一种资源。这个过程有点类似于,公司部门里。我在使用着打印机打印东西的同一时候(还没有打印完)。别人刚好也在此刻使用打印机打印东西,假设不做不论什么处理的话,打印出来的东西肯定是错乱的。 以下我们用程序模拟一下这个过程。 ...
分类:
编程语言 时间:
2017-08-02 22:14:53
阅读次数:
195
Talented Mr.Tang has nn strings consisting of only lower case characters. He wants to charge them with Balala Power (he could change each character ra ...
分类:
其他好文 时间:
2017-07-31 13:21:19
阅读次数:
176
1.编写一个名为right_justify的函数,函数接受一个名为``s``的字符串作为形参, 并在打印足够多的前导空格(leading space)之后打印这个字符串,使得字符串的最后一个字母位于显示屏的第70列。 2.函数对象是一个可以赋值给变量的值,也可以作为实参传递。例如, do_twice ...
分类:
编程语言 时间:
2017-07-29 20:16:54
阅读次数:
409
题意:求n的k次方所得到的数的前三位和后三位。 分析: 1、后三位快速幂取模,注意不足三位补前导零。 2、前三位: 令n=10a,则nk=10ak=10x+y,x为ak的整数部分,y为ak的小数部分。 eg:n=19,k=4,则nk=130321, a=log10(n)=1.278753600952 ...
分类:
其他好文 时间:
2017-07-23 21:18:54
阅读次数:
180
题意:求 n^k 的前三位和后三位。 析:后三位,很简单就是快速幂,然后取模1000,注意要补0不全的话,对于前三位,先取10的对数,然后整数部分就是10000....,不用要,只要小数部分就好,然后取前三位。 代码如下: ...
分类:
其他好文 时间:
2017-07-23 21:09:37
阅读次数:
155