该文介绍了如何使用指针中一些未使用的位来隐藏一些数据。 When we write C code, pointers are everywhere. We can make a little extra use of pointers and sneak in some extra informat...
分类:
其他好文 时间:
2015-06-15 12:33:40
阅读次数:
122
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
设到第i台阶有A[i]
那么到第1台阶有A[1]=...
分类:
其他好文 时间:
2015-06-15 00:18:50
阅读次数:
111
This is the classic LCS problem. Since it only requires you to print the maximum length, the code can be optimized to use only O(m) space (seehere).My...
分类:
其他好文 时间:
2015-06-15 00:10:20
阅读次数:
157
Yada Number
Problem Description:
Every positive integer can be expressed by multiplication of prime integers. Duoxida says an integer is a yada number if the total amount of 2,3,5,7,11,13 in its...
分类:
其他好文 时间:
2015-06-14 20:04:45
阅读次数:
344
错误提示如图。大概意思就是SVN路径不对解决方法如下:首先下载Subversion 1.8.13(1.8) 下载链接(https://www.visualsvn.com/downloads/)然后解压到一个文件夹中。 将会有一个文件夹bin,然后去设置- >版本控制- > Subversion按照图...
分类:
其他好文 时间:
2015-06-14 19:51:18
阅读次数:
2753
you are a C programmer, you must be familiar with macros. They are powerful and can help you ease your work if used correctly. However, if you don‘t define macros carefully, they may bite you and...
分类:
系统相关 时间:
2015-06-14 17:02:13
阅读次数:
165
A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the botto...
分类:
其他好文 时间:
2015-06-14 15:18:28
阅读次数:
151
题目:Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be chan...
分类:
编程语言 时间:
2015-06-14 15:01:43
阅读次数:
216
You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?题意:给你一个n阶的台阶,你一次最多只能上2个台阶,请问一共有多少个走法?...
分类:
其他好文 时间:
2015-06-14 13:50:57
阅读次数:
167
Question: The defaultgccversion on CentOS is too old to build a particular application. How can I upgrade the version ofgccinstalled on CentOS? As of ...
分类:
其他好文 时间:
2015-06-14 12:25:33
阅读次数:
137