由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Interview白板程序问题
相关主题
G家面试可以不写白板?5555面试官这么说是不是没有希望了。。。。。。
phone interview对老中特别不利一会儿要M家phone interview~~求bless~ update 面经
被google据了一个教训提醒大家一下
郁闷的求职过程Amazon现在不用phone interview了吗?
M$ on campus面经cracking the coding interview 150 有没有test case可以下载?或者online juedge
从be interviewed 到interview 的一些感受 (1) 希望对即将be interviewed的朋友有帮助[合集] 从be interviewed 到interview 的一些感受 (1) 希望对即将
google phone interview[合集] 报一个offer,并推荐一个very good interview coding 网站
Please help: failed 5 on-site interviews. What can be done in the future interviews?group interview
相关话题的讨论汇总
话题: test话题: cases话题: interview话题: 面试官话题: 问题
进入JobHunting版参与讨论
1 (共1页)
c*****g
发帖数: 33
1
对于interview白板coding有几个问题
1. 请问应该要写下comment吗? 不写comment会不会被认为是不好的coding style而扣
分?
2. 请问run test cases应该要在什么时候? (i)写完code ,自己在心里跑test cases,
一边验证一边修改,直到general cases以及edge cases都没问题,才跟面试官说我写好
了,请验证.
(ii)写完code,不在心里跑test cases,大声在面试官面前跑test case,并且一边修改
code.
做法(i)的问题是会花去太多时间. 做法(ii)的问题是,若是一边跟面试官讲一边跑test
case然后修正code,怕会让他觉得我是careless的人 因为不先想好就写code然后之后
才在修修补补.
请问各位会怎么做呢? 如果有人已经是面试官,请问哪种方法您会比较喜欢呢?
感谢指教
p*****2
发帖数: 21240
2

test
就10几行代码还写comments?

【在 c*****g 的大作中提到】
: 对于interview白板coding有几个问题
: 1. 请问应该要写下comment吗? 不写comment会不会被认为是不好的coding style而扣
: 分?
: 2. 请问run test cases应该要在什么时候? (i)写完code ,自己在心里跑test cases,
: 一边验证一边修改,直到general cases以及edge cases都没问题,才跟面试官说我写好
: 了,请验证.
: (ii)写完code,不在心里跑test cases,大声在面试官面前跑test case,并且一边修改
: code.
: 做法(i)的问题是会花去太多时间. 做法(ii)的问题是,若是一边跟面试官讲一边跑test
: case然后修正code,怕会让他觉得我是careless的人 因为不先想好就写code然后之后

c*****a
发帖数: 808
3
我一般白纸练,写了test再写code...
t*********h
发帖数: 941
4
the problem with test case is, some interviewers immediately point out your
bugs and don't give you a chance to think it over. real annoying

test

【在 c*****g 的大作中提到】
: 对于interview白板coding有几个问题
: 1. 请问应该要写下comment吗? 不写comment会不会被认为是不好的coding style而扣
: 分?
: 2. 请问run test cases应该要在什么时候? (i)写完code ,自己在心里跑test cases,
: 一边验证一边修改,直到general cases以及edge cases都没问题,才跟面试官说我写好
: 了,请验证.
: (ii)写完code,不在心里跑test cases,大声在面试官面前跑test case,并且一边修改
: code.
: 做法(i)的问题是会花去太多时间. 做法(ii)的问题是,若是一边跟面试官讲一边跑test
: case然后修正code,怕会让他觉得我是careless的人 因为不先想好就写code然后之后

c*****g
发帖数: 33
5
请教2爷,那对于test cases的问题有没有什么建议
谢谢

【在 p*****2 的大作中提到】
:
: test
: 就10几行代码还写comments?

p*****2
发帖数: 21240
6

写代码之前心里要很清楚算法,写的时候注意边界条件,容易出问题的地方。尽量一次
性写好。写好之后,run几个
典型的test case

【在 c*****g 的大作中提到】
: 请教2爷,那对于test cases的问题有没有什么建议
: 谢谢

c*****g
发帖数: 33
7
感谢大家提点 看来我还有一段路要走.....

【在 p*****2 的大作中提到】
:
: 写代码之前心里要很清楚算法,写的时候注意边界条件,容易出问题的地方。尽量一次
: 性写好。写好之后,run几个
: 典型的test case

1 (共1页)
进入JobHunting版参与讨论
相关主题
group interviewM$ on campus面经
小公司interview,着装,interview应该注意什么从be interviewed 到interview 的一些感受 (1) 希望对即将be interviewed的朋友有帮助
并发,OO方面的coding interview问题怎么准备?google phone interview
Coding interview tutoring and mock interviewsPlease help: failed 5 on-site interviews. What can be done in the future interviews?
G家面试可以不写白板?5555面试官这么说是不是没有希望了。。。。。。
phone interview对老中特别不利一会儿要M家phone interview~~求bless~ update 面经
被google据了一个教训提醒大家一下
郁闷的求职过程Amazon现在不用phone interview了吗?
相关话题的讨论汇总
话题: test话题: cases话题: interview话题: 面试官话题: 问题