27

Acing the Coding Interview

Embed Size (px)

Citation preview

Page 1: Acing the Coding Interview
Page 2: Acing the Coding Interview
Page 3: Acing the Coding Interview

Ted Xiao, EECS MS ‘16

50+ Coding InterviewsToo many hours preparing...

Page 4: Acing the Coding Interview

● 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

Page 5: Acing the Coding Interview
Page 6: Acing the Coding Interview

●●●

○○

■■

●●

Page 7: Acing the Coding Interview

●●●

●●●●

●●

●●●

●●●●

Page 8: Acing the Coding Interview

●●●

Page 9: Acing the Coding Interview
Page 10: Acing the Coding Interview
Page 11: Acing the Coding Interview

●○○○

●○○○

Page 12: Acing the Coding Interview

Page 13: Acing the Coding Interview

Page 14: Acing the Coding Interview

●○○○

●○○○

Page 15: Acing the Coding Interview

●○

●○

Page 16: Acing the Coding Interview

○○

Page 17: Acing the Coding Interview

●○

■■■

○■

○■

○■

○■■■

Page 18: Acing the Coding Interview

●○○

■○○○

Page 19: Acing the Coding Interview
Page 20: Acing the Coding Interview

●○

●○○

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

Page 21: Acing the Coding Interview
Page 22: Acing the Coding Interview

●○○

●●

●○

Page 23: Acing the Coding Interview

●○○○

●○○

Page 24: Acing the Coding Interview
Page 25: Acing the Coding Interview

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

Page 26: Acing the Coding Interview
Page 27: Acing the Coding Interview