活跃农民-感谢提供高质量信息和讨论

- 积分
- 734
- 学分
- 个
- 大米
- 升
- 人参
- 枚
- 水井
- 尺
- 小麦
- 颗
- 萝卜
- 根
- 小米
- 粒
- UID
- 108207
- 注册时间
- 2014-1-28
- 最后登录
- 1970-1-1
- 在线时间
- 小时
- 好友
- 收听
- 听众
- 日志
- 相册
- 帖子
- 主题
- 分享
- 精华
|
2015(10-12月) 码农类General 本科 全职@Yelp - 校园招聘会 - 在线笔试 | Other |
刚刚做完一个 Yelp 的 online tesing ;
分为两部分:. 鍥磋鎴戜滑@1point 3 acres
1) 15个 小问题;给你15分钟; 记住的问题有:. 鍥磋鎴戜滑@1point 3 acres
* what comman to use to find all instances of method in source code
* how many bits in a single octal digit
* remove a row from sql
*maximum value of 32 unsigned digt
鏉ユ簮涓浜.涓夊垎鍦拌鍧. 其他的题目都出现在 地理其他人 总结的一个 Pdf 文档里面. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
2) 超简单的一个问题:15分钟把
check palindrom : if yes, return true; if no, return false .
public class{
public static void main(String [] args) {
// read from std input;
}
}
这个function本事是毫无难度。但是我到现在都没弄明白的是,这个题目是希望
我们把这个function 写在main methon 里面嘛?然后这个online judge 到底是
怎么test 的? 是给一个input.txt 和一个output.txt.然后要read from input.txt;
再write to output.txt?
我自己是单独在solution class写了一个 checkPalindrom class, 再在main metho里面
加了一个file reader 和write ,一边read from file,一边call checkPalindrom 这个function
很明显不对。。. from: 1point3acres.com/bbs
|
评分
-
4
查看全部评分
-
|