You are previewing Coding Interviews: Questions, Analysis & Solutions.

Coding Interviews: Questions, Analysis & Solutions

O'Reilly logo




Interviewers usually expect efficient solutions that solve problems within the resource constraints, so it is important for candidates to improve code performance from the perspectives of both time and space consumption. This chapter illustrates strategies to optimize programs by selecting appropriate data structures and algorithms, as well as by making trade-off decisions to balance time and space efficiencies.

Time Efficiency

No one likes to wait for a delayed response from a software application, so companies spend a lot of resources on performance optimization before software releases. That is why many interviewers ...

The best content for your career. Discover unlimited learning on demand for around $1/day.