• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






peerelss

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2013年12月27日

csinglelink
摘要: package csinglelink;class Node { int iData; Node Child; public Node() { } public Node(int i) { iData = i; Child = null; }}class SingleLink { Node head = null; public SingleLink() { } //展示链表 public void display() { Node current = head; if (cur... 阅读全文
posted @ 2013-12-27 00:09 peerelss 阅读(142) 评论(0) 推荐(0)
 

2013年12月25日

FindLongArray
摘要: package findlongarray;import java.util.Stack;class LongArray { int array[]; Stack stack; public LongArray() { } public LongArray(int i) { array = new int[10]; { for (int j = 0; j array[jtemp]) { stacktemp.push(j); } }... 阅读全文
posted @ 2013-12-25 23:26 peerelss 阅读(137) 评论(0) 推荐(0)
 
FindMaxDeep
摘要: /* * To change this template, choose Tools | Templates * and open the template in the editor. */package findmaxdeep;class Tree{ int iData; Tree right; Tree left;}class Trees{ Tree root=null; int maxdeep=0; public Trees(){} public void create() { for (int j = 0; j maxdeep)... 阅读全文
posted @ 2013-12-25 23:25 peerelss 阅读(442) 评论(0) 推荐(0)
 

2013年12月23日

百度面试题
摘要: /* * To change this template, choose Tools | Templates * and open the template in the editor. */package maxsum;class sum{ int array1[]; int arrayend[]={0,0,0}; public sum(){} public sum(int i){ array1=new int[i]; for(int j=0;j arrayend[0])//如果此sum>此前存的值,则替换之。 ... 阅读全文
posted @ 2013-12-23 21:21 peerelss 阅读(169) 评论(0) 推荐(0)
 

2013年12月22日

百度的一到算法i题
摘要: /** To change this template, choose Tools | Templates* and open the template in the editor.*/package maxint;class MaxArray {int arrayone[];int arraylenght[];int arrayend[];int arrayfour[];public MaxArray() {}public MaxArray(int i) {arrayone = new int[i];arraylenght = new int[i];arrayend = new int[i] 阅读全文
posted @ 2013-12-22 23:30 peerelss 阅读(182) 评论(0) 推荐(0)