码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
原地逆置列表reverseList
//逆置单链表,原地操作,只需要遍历一遍 private?ListNode?reverse(ListNode?head) { ????ListNode?pre?=?null; ????ListNode?cur?=?head; ????while(cur!=null) ????{ ???????...
分类:其他好文   时间:2014-08-10 13:12:50    阅读次数:284
Insertion Sort List
Sort a linked list using insertion sort.思路:若当前元素比head小,插入已排序队列头部;否则,从前往后查找当前元素的插入位置。 1 ListNode *insertionSortList( ListNode *head ) { 2 if( !head...
分类:其他好文   时间:2014-08-10 01:30:39    阅读次数:313
sigslot,一个开源的c++signal slot库
sigslot is a head only signal slot lib,written by Sarah Thompson.原始仓库是http://sourceforge.net/projects/sigslot/文档是http://sigslot.sourceforge.net/sigslo...
分类:编程语言   时间:2014-08-09 23:09:59    阅读次数:500
软件行业人员书单
书籍推荐(转自豆瓣) 一、软件工程师 --Clean Code《代码整洁之道》 --Implementation Patterns《实现模式》 --Code Complete《代码大全》 --Refactoring: Improving the Design of Existing Code《重构——改善既有代码的设计》 --Effective Java(第二版) --Head ...
分类:其他好文   时间:2014-08-09 13:28:57    阅读次数:323
早上研究了下jsp的加载顺序,顺便复习下jsp
<%@?page?language="java"?contentType="text/html;?charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE?HTML?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitional//EN"> <html> <head> <%@?include?file=...
分类:Web程序   时间:2014-08-09 11:53:37    阅读次数:277
javascript 循环
<html> <head> <script> window.onload=function(){ var myobj = new Object(); myobj.color = ‘red‘; myobj.name = ‘hsin‘; myobj.nation = ‘taiwan‘; var myarr = new Array(‘blue‘,‘joe‘,‘taiwan‘); //使用for...
分类:编程语言   时间:2014-08-09 11:52:47    阅读次数:228
POJ - 1392 Ouroboros Snake (欧拉回路的应用)
Description Ouroboros is a mythical snake from ancient Egypt. It has its tail in its mouth and continously devours itself. The Ouroboros numbers are binary numbers of 2^n bits that have the prop...
分类:其他好文   时间:2014-08-09 11:40:57    阅读次数:315
链表讲解和基本操作练习附代码
以下都是单链表的基本操作,我都写了一遍,链表时间长不写一定会陌生,留给自己以后忘了看一眼,顺便给想学习链表的同学一点提示吧 首先先写头文件head.h,这里都是我定义好的函数分别有 这里的所有例子都是有头结点的链表,都是单链表操作 1)头插发建表 2)尾插法建表 3)打印链表 4)对链表赋值的时候进行插入排序 5)将链表翻转 6)找到链表倒数第n个元素 7)将两个链表连在一起 8)使单链表变成环链表 9)判断链表是否有环 10)将现有的链表排序进行插入排序(与4)不同,4)是在建立链表的时候进行排序...
分类:其他好文   时间:2014-08-09 11:40:27    阅读次数:399
bootstrap 导航元素
<!DOCTYPE?html> <html> <head> ???<title>Bootstrap?实例?-?带有下拉菜单的胶囊</title> ???<link?href="/bootstrap/css/bootstrap.min.css"?rel="stylesheet"> ???<script?src="/scripts/jquer...
分类:其他好文   时间:2014-08-09 00:21:57    阅读次数:289
html网页编码问题
之前碰到过一些html编码乱码问题,都理解的模模糊糊,问了别人解释的也是模模糊糊。近期要做前端这个问题研究了下仅仅须要两句话就能非常清楚的解释了(之前问的那些人是不是自己都没理解非常郁闷.)这段写在head中告诉浏览器用那种编码方式,浏览器就会自己主动选择相应的编码方式显示网页。然后在保存这个htm...
分类:Web程序   时间:2014-08-08 23:45:36    阅读次数:433
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!