易截截图软件、单文件、免安装、纯绿色、仅160KB

高分求教Oracle公司笔试答案 - Java / Java SE

1、please realize the defined function to get the height of BinaryTree predifined tree structure
java:
  public interface Tree{
  public object getValue();
  public Tree getLchild();
  public Tree getRchild();




The Function which you need to realize 
long getTreeHeight(Tree t);


2 There are 50 persons standing in a circle for a team, those who count the number 3 or multiple of 3 should leave from the circle, who is the last one in the circle? Please implement a class to get the persons original position in the circle...
哥们你英语几级?

到6级没

6级啊!

数到3出去的题一搜一大把

给我个链接好么?

数到3出去的题给我一个链接好么? 类似的!!

http://steven-hong.javaeye.com/blog/491982

注意我的头像!


第二题写个内部类来辅助解决比较好。

思路呢? 我不是很注重答案



upupupupupupupupupupupup

晕,居然是全英的面试题,看来要努力过6级了……


引用
第二题给你一个成品吧....

Java code

public class TestRound {
public static void print(int number,int count) {
ArrayList list = new ArrayList();
for (int i = 1; i <=number; i++) {
……

赞一个!

顶#14楼的,有注释,容易看懂


相关问答:

java日期处理 - Java / Java SE

当知道一个日期,如何把这个日期所在旬的前后两个日期取出
比如输入20090905,就输入20090901 20090910
输出20090901 20090910

取得天数后作一下判断再把这个方法用下void set(int field, int value)  
......

HTML标签底层的实现原理、机制 - Java / Java SE

为什么HTML以及一些其它标签会显示一些特定表现形式呢?如HTML中的换行标签<BR/>在底层是怎样实现的呢?现实的原理是什么呢
去W3C官方网站上,看看吧!我想一看你就明白了

我猜和编译原理有关,浏览器里可 ......

tomcat环境下jsp编译错误,求解! - Java / Web 开发

org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......

java swing 程序如何打包 - Java / Java相关

java swing 程序如何打包成jar,然后可以通过批处理文件bat直接运行,有没有什么工具直接可以完成这两个工作?
用jar打包,把运行需要的jar拷贝到一个目录,批处理用 start javaw -cp .;其他包路径 运行

用zip ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号