易截截图软件、单文件、免安装、纯绿色、仅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楼的,有注释,容易看懂


相关问答:

oracle spatial空间函数出错 - Oracle / 高级技术

在执行包的时候引用oracle spatial空间函数出错,出错情况如下
Errors in file
/user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902:
error in executing ODCIIndexStart() routine ORA-0 ......

关于AJAX和JSP的一些小问题~ - Java / Web 开发

我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

java socket email 问题 - Java / Java SE

我在 java核心技术上 看了一个 利用 Java socket email的例子 可是怎么也 不成功 为什么?
源码
Java code:

package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......

java windows7 MSSQL - Java / Java SE

使用java在windows7 32位下连接MSSQL。
两台机器,windows7 32位,在控制面板里面全部设置语言和区域选项都english-unitedstates
唯一区别只有在安装SQL server 2008的时候 选择的字符集不一样,
exec sp_helpsor ......

java 求助 - Java / Java EE

insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
请问大哥们这个sql 语句应该用Java里的那个数据库操作方法? ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号