l******d 发帖数: 530 | 1 Programming Interviews Exposed上的原话
You rarely need to write more than 15 lines of code and almost never more
than 30.
If you start writing a lot of code, you may be heading in the wrong
direction.
我写个template LinkedList的实现就80多行了呀,还省略了很多checking |
q****x 发帖数: 7404 | 2 yes if it's 45-min, 2-question session.
checking
【在 l******d 的大作中提到】 : Programming Interviews Exposed上的原话 : You rarely need to write more than 15 lines of code and almost never more : than 30. : If you start writing a lot of code, you may be heading in the wrong : direction. : 我写个template LinkedList的实现就80多行了呀,还省略了很多checking
|
y*******g 发帖数: 6599 | |
q****x 发帖数: 7404 | 4 only write what is asked.
【在 l******d 的大作中提到】 : Programming Interviews Exposed上的原话 : You rarely need to write more than 15 lines of code and almost never more : than 30. : If you start writing a lot of code, you may be heading in the wrong : direction. : 我写个template LinkedList的实现就80多行了呀,还省略了很多checking
|
l******d 发帖数: 530 | 5 有些题目要用到linked list或stack之类的数据结构的,需要自己先定义了再写不?
【在 q****x 的大作中提到】 : only write what is asked.
|
l*********8 发帖数: 4642 | 6 问面试官。通常不需要写。
【在 l******d 的大作中提到】 : 有些题目要用到linked list或stack之类的数据结构的,需要自己先定义了再写不?
|
L***Q 发帖数: 508 | 7 不尽然,我onsite遇到过一个题是wildcat string match,那玩意儿30行C++恐怕写不完
checking
【在 l******d 的大作中提到】 : Programming Interviews Exposed上的原话 : You rarely need to write more than 15 lines of code and almost never more : than 30. : If you start writing a lot of code, you may be heading in the wrong : direction. : 我写个template LinkedList的实现就80多行了呀,还省略了很多checking
|
q****x 发帖数: 7404 | 8 recursion, around 30 lines enough.
不完
【在 L***Q 的大作中提到】 : 不尽然,我onsite遇到过一个题是wildcat string match,那玩意儿30行C++恐怕写不完 : : checking
|