自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (4)
  • 收藏
  • 关注

转载 简单排序算法:冒泡排序,选择排序,插入排序

效率分析:冒泡排序:对于n个数据的数组,共进行n-1趟排序,第一趟排序中有n-1次比较,第二趟有n-2次比较,依次类推,最后一趟有1次比较(n-1)+(n-2)...+1 = n *(n-1)/2    总共进行了n*n/2次比较如果数据是随机的,大概有一半数据需要交换,则交换的次数为n*n/4,在最坏的情况下,即初始是逆序的,每次都需要交换。交换和比较次数都和n的平方成正比,

2012-03-26 09:12:51 1503

原创 打印输出蛇形矩阵

package job;public class snake { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int n = 5; int x=0, y= n-1; int tot=1; int[][]

2012-03-22 14:19:32 718

原创 用1,2,3,...9组成3个三位数abc,def,ghi,每个数字恰用一次,要求abc:def:ghi=1:2:3

public class Test { /** * @param args */ public static void main(String[] args) { int[] t = new int[10]; int a; for(int i =0; i<10; i++) { t[i]=-1; } for(int i = 123; i< 987/

2012-03-22 09:45:30 4445 2

原创 java实现约瑟夫环

约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。数据结构:循环链表,方法是创建链表和删除节点。待改进:不支持m=1时的情况,所以step是从2开始的。m=1的情况是输出从1到n,也可以直接加到主函数中p

2012-03-16 10:19:01 555

jquery tabs实例

轻松实现网页版的tab标签显示。 包含完整的js和css代码

2012-08-29

jqueryUI工具类库

Welcome to jQuery UI! This page demonstrates the widgets you downloaded using the theme you selected in the download builder. We've included and linked to minified versions of jQuery, your personalized copy of jQuery UI (js/jquery-ui-1.8.21.custom.min.js), and css/humanity/jquery-ui-1.8.21.custom.css which imports the entire jQuery UI CSS Framework. You can choose to link a subset of the CSS Framework depending on your needs. You've downloaded components and a theme that are compatible with jQuery 1.3+. Please make sure you are using jQuery 1.3+ in your production environment. YOUR COMPONENTS:

2012-08-29

struts2示例程序

struts.xml &lt;?xml version="1.0" encoding="UTF-8" ?&gt; <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"> <struts> <package name="demo" namespace="/mystruts" extends="struts-default"> <action name="sum" class="action.SumAction"> <result name="positive">/positive.jsp</result> <result name="negative">/negative.jsp</result> </action> </package> </struts>

2012-08-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除