上一页 1 ··· 11 12 13 14 15
摘要: 题目描述:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".解决方案:该题目解决思路很简单,新建一个字符串,然... 阅读全文
posted @ 2014-09-24 21:03 skycore 阅读(158) 评论(0) 推荐(0) 编辑
摘要: shell是Unix/Linux中的重要工具,用来解析用户输入的命令。下面我们来实现一个简单的shell程序,来练习fork/exec/wait/exit的使用,顺便推荐一本书籍《Understanding Unix/Linux Programming - A Guide to Theory and... 阅读全文
posted @ 2014-09-24 20:51 skycore 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Sort a linked list using insertion sort.解决方案:该题目就是用插入排序来对链表进行排序,很简单,直接上代码。 1 class Solution { 2 public: 3 ListNode *insertionSortList(ListNod... 阅读全文
posted @ 2014-09-24 15:26 skycore 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 从今天起,我将写一些关于C/C++和Linux系统编程等方面的博客,希望能和大家一起交流学习! 阅读全文
posted @ 2014-09-24 14:53 skycore 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15