码迷,mamicode.com
首页 >  
搜索关键字:rotate list    ( 56188个结果
javaEE mvc例子详解
一个不错的例子值得细细品味: 下面按照包顺序将代码贴出来供大家参考: IEmpDAO package org.lzch.dao; import java.util.List; import org.lzch.vo.Emp; public interface IEmpDAO { public boolean doCreate(Emp emp)throws Exception; p...
分类:编程语言   时间:2014-05-26 05:58:08    阅读次数:578
LeetCode: Rotate Image [047]
【题目】 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? 【题意】 给定一个nXn的二维矩阵,按时钟方向旋转90度,不能使用额外的数据结构 【思路】 从外向内逐层旋转...
分类:其他好文   时间:2014-05-26 05:50:25    阅读次数:266
透析Java本质-谁创建了对象,this是什么
是构造方法创建的对象吗? package com.java.essence_36; import java.util.ArrayList; import java.util.List; /** * Created by lw on 14-5-23. * * 构造器做了什么? * 对象是谁创建的?构造器? * this到底是什么? */ class SupperCons...
分类:编程语言   时间:2014-05-26 04:57:54    阅读次数:544
定义一个静态方法,该方法可以接收一个List<Integer>,方法内对List进行排序
/**9、定义一个静态方法,该方法可以接收一个List,方法内对List进行排序*/ import java.util.ArrayList; import java.util.List;   public class Test9 {           public static void sort(List list) {                 int size = ...
分类:其他好文   时间:2014-05-26 04:09:20    阅读次数:343
Linux,unix,cygwin,centeros下的tar压缩解压缩命令详解
tar Examples:   tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.   tar -tvf archive.tar         # List all files in archive.tar verbosely.   tar -xf archive.tar         ...
分类:Windows程序   时间:2014-05-26 03:43:53    阅读次数:556
第九周编程作业
A:list总时间限制:4000ms内存限制:65536kB描写叙述写一个程序完毕下面命令:new id ——新建一个指定编号为id的序列(id#include #include #include using namespace std;typedef map > Map;int main(){ i...
分类:其他好文   时间:2014-05-26 02:26:51    阅读次数:337
【练习题】编写打印出一个单链表的所有元素的程序【链表】
只是实现了链表ADT的部分功能。 /*---编写打印出一个单链表的所有元素的程序---*/ #include #include struct Node{ int val; struct Node *next; }; Node *findEnd(Node *list){ while(list->next) list = list->next; return list; } v...
分类:其他好文   时间:2014-05-24 22:30:37    阅读次数:232
【练习】P62
/*---分别对单链表和双链表,只使用指针来交换两个相邻的元素。---*/ /*-单链表版本-*/ #include #include struct Node{ int val; struct Node *next; }; Node *findEnd(Node *list){ while(list->next) list = list->next; return ...
分类:其他好文   时间:2014-05-24 19:41:49    阅读次数:253
Ubuntu12.04在无网络环境下配置apt-get光盘源的简单方法
许多数据库服务器是不能连上internet,想更新安装包就比较麻烦。通常可以先在有internet环境的计算机上下载deb包,在拷贝到服务器安装deb,这样很难处理包的依赖关系。apt-get可以解决包的依赖关系,但是默认配置下需要从internet下载包,如果可以从本地读取安装源就可以解决包..
分类:其他好文   时间:2014-05-24 15:19:09    阅读次数:231
【练习】P62页3.2题
/*---给你一个链表L和另一个链表P,它们包含以升序排列的整数。操作PrintLots(L,P) 将打印L中那些由P所指定位置上的元素。---*/ #include #include struct Node{ int val; struct Node *next; }; Node *findEnd(Node *list){ while(list->next) list = l...
分类:其他好文   时间:2014-05-24 14:27:42    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!