码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
LeetCode OJ - Remove Nth Node From End of List
题目: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
Problem Insertion Sort List
Problem Description:Sort a linked list using insertion sort.Solution: 1 public class Solution { 2 public ListNode insertionSortList(ListNode head)...
分类:其他好文   时间:2014-07-07 16:57:55    阅读次数:117
httpclient总结
1、httpclient总结:一、基本知识准备(1)构建URI工具类,URIBuilder(2)HttpResponse类,可以添加Header信息 获取所有Header信息的方法,调用HeaderIterator接口HeaderIterator it = response.head...
分类:其他好文   时间:2014-07-07 16:50:50    阅读次数:243
Problem Sort List
Problem Description:Sort a linked list inO(nlogn) time using constant space complexity.Solution: 1 public ListNode sortList(ListNode head) { 2 ...
分类:其他好文   时间:2014-07-07 16:48:00    阅读次数:238
Design Model---Observer Model
昨天看了Head First设计模式这本书,这本书写得真不错,简单易懂。我是第一次接触设计模式,觉得这东西挺高端大气的,和别人侃的时候,我用啥XX设计模式,是不是觉得很屌的感觉?哈哈,开玩笑了,主要是学习前人的经验,这样让自己的代码设计更加规范。现在就记录一下我学到的第一个设计模式---Obse.....
分类:其他好文   时间:2014-07-07 16:16:24    阅读次数:276
LeetCode Reverse Linked List II
class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if (head == NULL || n 0) { pre = cur; ...
分类:其他好文   时间:2014-06-30 15:36:26    阅读次数:148
linux shell 字符串操作(长度,查找,替换,匹配)详解
linux shell 字符串操作(长度,查找,替换,匹配)详解 在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。 其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此...
分类:系统相关   时间:2014-06-30 15:26:16    阅读次数:469
[家里蹲大学数学杂志]第053期Legendre变换
$\bf 题目$. 设 $\calX$ 是一个 $B$ 空间, $f:\calX\to \overline{\bbR}\sex{\equiv \bbR\cap\sed{\infty}}$ 是连续的凸泛函并且 $f(x)\not\equiv \infty$. 若定义 $f^*:\calX^*\to \...
分类:其他好文   时间:2014-06-30 14:13:16    阅读次数:224
设计模式学习路线(书籍)
1.《大话设计模式》 2.《Head First设计模式》 3.《设计模式:可复用面向对象软件的基础》...
分类:其他好文   时间:2014-06-30 07:35:10    阅读次数:180
MySQL数据库学习初步
我使用的环境是Win7,开始学习PHP和MySQL,并且买了本《Head First PHP & MySQL》,可以从Head First Labs官网获得HeadFirst系列书籍的相关信息和源代码。 1、下载XAMPP开发包 从XAMPP中文官网下载目前比较流行的PHP开发包,XAMPP是完全免费且易于安装的Apache发行版,其中包含MySQL、PHP和Perl。XAMPP适用于Wind...
分类:数据库   时间:2014-06-30 07:27:57    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!