25.03.2013 Views

Cracking the Coding Interview - Fooo

Cracking the Coding Interview - Fooo

Cracking the Coding Interview - Fooo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What You Need To Know<br />

Before <strong>the</strong> <strong>Interview</strong> | Technical Preparation<br />

Most interviewers won’t ask about specific algorithms for binary tree balancing or o<strong>the</strong>r<br />

complex algorithms Frankly, <strong>the</strong>y probably don’t remember <strong>the</strong>se algorithms ei<strong>the</strong>r<br />

You’re usually only expected to know <strong>the</strong> basics Here’s a list of <strong>the</strong> absolute must-have<br />

knowledge:<br />

Data Structures Algorithms Concepts<br />

Linked Lists Breadth First Search Bit Manipulation<br />

Binary Trees Depth First Search Singleton Design Pattern<br />

Tries Binary Search Factory Design Pattern<br />

Stacks Merge Sort Memory (Stack vs Heap)<br />

Queues Quick Sort Recursion<br />

Vectors / ArrayLists Tree Insert / Find / etc Big-O Time<br />

Hash Tables<br />

This is not, of course, an all-inclusive list Questions may be asked on areas outside of <strong>the</strong>se<br />

topics This is merely a “must know” list<br />

For each of <strong>the</strong> topics, make sure you understand how to implement / use <strong>the</strong>m, and (where<br />

applicable) <strong>the</strong> space and time complexity<br />

Practicing implementing <strong>the</strong> data structures and algorithms You might be asked to implement<br />

<strong>the</strong>m in your interview, or you might be asked to implement a modification of <strong>the</strong>m<br />

Ei<strong>the</strong>r way, <strong>the</strong> more comfortable you are with implementations <strong>the</strong> better<br />

Do you need to know details of C++, Java, etc?<br />

While I personally never liked asking <strong>the</strong>se sorts of questions (e g , “what is a vtable?”), many<br />

interviewers regretfully do ask <strong>the</strong>m For big companies like Microsoft, Google, Amazon, etc,<br />

I wouldn’t stress too much about <strong>the</strong>se questions Look up <strong>the</strong> most common questions and<br />

make sure you have answers to <strong>the</strong>m, but I would focus on data structures and algorithms<br />

preparation<br />

At smaller companies, or non-software companies, <strong>the</strong>se questions can be more important<br />

Look up your company on CareerCup com to decide for yourself If your company isn’t listed,<br />

look up a similar company as a reference<br />

CareerCup com<br />

2 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!