Acing the Coding Interview, presented by Ted Xiao for DiversaTech on November 10, 2016. Ted explains the structure of typical New Grad and Intern Software Engineering interviews, outlines strategies to approach these questions, and shares his tips and tricks on how to prepare for success.
20. ●
○
●
○
○
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
25. 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