题目:Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2...
分类:
其他好文 时间:
2014-07-10 14:29:45
阅读次数:
259
git tag is used to create labels, usually for version numbers. Format: git tag Example: git tag v0.1 HEAD is to create a version number v0.1 on curren...
分类:
其他好文 时间:
2014-07-10 14:29:01
阅读次数:
213
Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1]...
分类:
其他好文 时间:
2014-07-10 13:34:30
阅读次数:
208
原来的版本是用fopen打开文件的,如果要从ANDROID的APK中取文件,直接就洗白了修改如下void CCCrypto::MD5File(const char* path, unsigned char* output){unsigned long len = 0;//to make sure w...
分类:
移动开发 时间:
2014-07-10 12:46:13
阅读次数:
316
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-10 11:24:15
阅读次数:
229
以下内容摘自《http://blog.csdn.net/asanscape/article/details/6084600》Smart Pointer在初始化或释放等操作时,它们是一个对象,用点操作符,其他大部分操作则使用“->”操作符。For example: _ConnectionPtrm_p....
分类:
其他好文 时间:
2014-07-10 10:11:06
阅读次数:
211
题目:Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After rem...
分类:
其他好文 时间:
2014-07-07 19:01:42
阅读次数:
155
【为什么要用多线程?】传统的图形用户界面应用程序都仅仅有一个运行线程,而且一次仅仅运行一个操作。假设用户从用户界面中调用一个比較耗时的操作,当该操作正在运行时,用户界面一般会冻结而不再响应。这个问题能够用事件处理和多线程来解决。【Linux有线程的概念吗?】传统的UNIX系统也支持线程的概念,但一个...
分类:
编程语言 时间:
2014-06-30 13:42:33
阅读次数:
349
Recently, I needed to call a CUI program from within Qt GUI window and simulate the effect of an embedded command line window like the Autolisp consol...
分类:
其他好文 时间:
2014-06-30 12:45:02
阅读次数:
1252
注意要么在开始就设置公司和程序名称,如:QApplication app(argc, argv); app.setOrganizationName("Trolltech"); app.setApplicationName("Recent Files Example");要么在QSet...
分类:
其他好文 时间:
2014-06-29 18:44:22
阅读次数:
197