s******r 发帖数: 65 | 1 The interviewer cares about our problem-solving skills, coding skills,
analytical skills, design skills and communication skills. To show these
skills, solve the given interview problem in the following steps:
1: Clarify the question.
1.1: For algorithm questions, go through a few examples to clarify the
problem. Use pictures when helpful.
1.2: For design questions, ask for scenarios, requirements and
constraints
2: Specify input and output, design 3 ~ 5 test cases, including boundary
cases
3: Come up with the brute-force/naive solution, analyze complexity
4: Come up with improved solutions and analyze complexity. Start coding
after the interviewer agrees
5: Start coding. Handel boundary cases.
6: During coding, use utility functions without implementing them. Keep
talking; Explain
complicated code pieces when necessary.
7: Upon finished, go through previous and new test cases
8: Ask the question: can we do better?
请问这样好不好?
如果不好,需要改进哪些不足? | d****o 发帖数: 1055 | 2 5: Start coding. Handel boundary cases
~~and keep talking what you are doing | s******r 发帖数: 65 | 3 多谢。学习了,主贴里改进。
【在 d****o 的大作中提到】 : 5: Start coding. Handel boundary cases : ~~and keep talking what you are doing
|
|