摘要: C语言中, 如果在一个文件中定义了一个 external static variable ,作用范围为这个文件 如果在一个函数内定义了一个 static variable,则为该函数私有,与该函数内的local variable 不同的是,static 变量的值是永久保存的。 static 也可以用 阅读全文
posted @ 2016-02-29 06:23 WithJiaJia 阅读(98) 评论(0) 推荐(0)
摘要: The implementation of binary search is not complicated, but it is a vivid illustration of the power of divide-and-conquer. Here is the code 1 int bina 阅读全文
posted @ 2016-02-20 05:01 WithJiaJia 阅读(151) 评论(0) 推荐(0)
摘要: here are two versions of the function that reverses a singly linked list, by iteration and recursion respectively. there should be a better recursion 阅读全文
posted @ 2016-02-20 02:47 WithJiaJia 阅读(190) 评论(0) 推荐(0)