码迷,mamicode.com
首页 >  
搜索关键字:rotate list    ( 56188个结果
[leetcode]_Binary Tree Inorder Traversal
题目:二叉树的中序遍历。思路:用递归来写中序遍历非常简单。但是题目直接挑衅说,----->"Recursive solution is trivial"。好吧。谁怕谁小狗。递归代码: 1 List inOrder = new ArrayList(); 2 3 public ...
分类:其他好文   时间:2014-06-29 12:55:36    阅读次数:176
Raspberry Pi(树莓派)国内软件源
sudo nano /etc/apt/sources.list源:deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi deb-src http://mirrors.tu...
分类:Web程序   时间:2014-06-29 07:58:09    阅读次数:384
crawler_基于块儿统计正文抽取_改进版
import java.util.ArrayList;import java.util.Arrays;import java.util.List;import java.util.regex.Pattern;/** * * 在线性时间内抽取主题类(新闻、博客等)网页的正文。 采用了基于行块分布函数....
分类:其他好文   时间:2014-06-29 07:45:25    阅读次数:283
SAX解析XML文件实例代码
import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.List;import javax.xml.parsers.ParserConfigurationException;...
分类:其他好文   时间:2014-06-29 07:43:35    阅读次数:244
动态方法决议 和 消息转发
假设我们在 Objective C 中向一个对象发送它无法处理的消息,会出现什么情况呢?我们知道发送消息是通过 objc_send(id, SEL, ...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 cache, method list 中依次查找 S...
分类:其他好文   时间:2014-06-07 10:43:35    阅读次数:228
Mantis 缺陷管理系统配置与安装[Z]
什么是MantisMantisBT is a free popular web-based bugtracking system (feature list). It is written in the PHP scripting language and works with MySQL, MS ...
分类:其他好文   时间:2014-06-07 09:55:22    阅读次数:353
C++ Primer 学习笔记_46_STL实践与分析(20)--容器特有的算法
STL实践与分析--容器特有的算法 与其它顺序容器所支持的操作相比,标准库为list容器定义了更精细的操作集合,使它不必仅仅依赖于泛型操作。当中非常大的一个原因就是list容器不是依照内存中的顺序进行布局的,不支持随即訪问,这样,在list容器上就不能使用随即訪问迭代器的算法,如sort等;还有其....
分类:编程语言   时间:2014-06-07 06:12:44    阅读次数:245
LeetCode:Rotate Image
题目链接 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? ...
分类:其他好文   时间:2014-06-05 16:56:29    阅读次数:228
leetcode--Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL./** *...
分类:其他好文   时间:2014-06-05 13:44:26    阅读次数:250
leetcode--Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2014-06-05 13:41:44    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!