acing the coding interview
Post on 13-Feb-2017
135 Views
Preview:
TRANSCRIPT
Ted Xiao, EECS MS ‘16
50+ Coding InterviewsToo many hours preparing...
● You’re nervous about your first coding interview● You want to pick up some tips and tricks ● You’re ready to land your dream internship / job
●●●
○○
■■
●●
●●●
●●●●
●
●●
●●●
●●●●
●●●
●○○○
●○○○
●
●
●
●
●
●
●○○○
●○○○
●
●○
●○
●
●
○○
○
●○
■■■
○■
○■
○■
○■■■
●○○
■○○○
●○
●○○
How much time do you have?
<2 days 2 - 7 days 1 week +
What should you do? Review concepts and research what the company asks (Glassdoor, /r/cscareerquestions)
Review concepts, create a cheat sheet, do practice problems
Review concepts, learn gaps in knowledge, create a cheat sheet, do a lot of problems
●○○
●●
○
●○
●○○○
●○○
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is [100, 180, 260, 310, 40, 535, 695], the maximum profit can earned by buying on day 0, selling on day 3
top related