自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

花果山

我人在江湖,江湖却没有关于我的传说

  • 博客(9)
  • 收藏
  • 关注

原创 面试题之树与图

question: GIven a binary tree, print the tree according to the level.eg010203040506070809101112131415proceed further to find the mirror image of alternate level010203070605040809

2012-01-28 19:43:28 919

转载 如何计算java中的对象object大小size

Measuring Object SizeWhile the Java platform doesn't provide a way to measure the size of an object, it is possible to measure the approximate size indirectly.Section 5.1.1 discusses the Runtime

2012-01-28 18:25:26 4775

原创 程序员面试之设计题

question:Implement a connection poolanswer:Create a ConnectionPool class. A Properties class can be used as the initial parameter for the constructor of the ConnectionPool class. The properties ma

2012-01-27 11:14:26 948

原创 程序员之数学面试题

question:Fibonacci sequence and optimization  question:check a number whether is Power of 2answer:return (n & (n-1) == 0) question:Implement an algorithm to generate all prime numb

2012-01-27 09:45:26 1209

原创 脑筋急转弯

question:Given 25 horses, find the best 3 horses with minimum number of races. Each race can have only 5 horses. You don't have a timer.answer:7 races questions:there are 81 horses. you ne

2012-01-26 17:11:09 1002

原创 数组面试算法题

1. question: Given an integer array of which both first half and second half are sorted. Write a function to merge the two parts to create one single sorted array in place [do not use any extra space]

2012-01-25 07:56:12 3595

原创 单链表算法面试题

question: find the middle element in one traversalanswer: use two pointer with one step and two steps, when the two steps pointer ends, the location where one step pointer runs is the answerques

2012-01-21 11:39:22 1115

原创 如何设置Eclipse工作区默认编辑宽度

1)打开Window  => Preferences窗口2)打开Formatter属性页从Java => CodeStyle => Formatter3) 单击New创建一个自己的Formatter4)选择Line Wrapping属性页,并设置Maximum line width 为1605)然后一路OK就可以了

2012-01-18 10:57:21 4686

原创 如何解决warning: incompatible implicit declaration of built-in function 'malloc'

在代码中包含:int *x = malloc(sizeof(int)); 得到gcc编译错误:***: warning: implicit declaration of function ‘malloc’***: warning: incompatible implicit declaration of built-in function ‘malloc’ 解决办法

2012-01-17 13:07:26 32977 1

空空如也

空空如也

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

TA关注的人

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