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.

<strong>Interview</strong> Questions<br />

How This Book is Organized<br />

We have grouped interview questions into categories, with a page preceding each category<br />

offering advice and o<strong>the</strong>r information Note that many questions may fall into multiple categories<br />

Within each category, <strong>the</strong> questions are sorted by approximate level of difficulty Solutions<br />

for all questions are at <strong>the</strong> back<br />

Special Advice for Software Design Engineers in Test (SDETs)<br />

Not only must SDETs master testing, but <strong>the</strong>y also have to be great coders Thus, we recommend<br />

<strong>the</strong> follow preparation process:<br />

» Prepare <strong>the</strong> Core Testing Problems: For example, how would you test a light bulb? A<br />

pen? A cash register? Microsoft Word? The Testing Chapter will give you more background<br />

on <strong>the</strong>se problems<br />

» Practice <strong>the</strong> <strong>Coding</strong> Questions: The #1 thing that SDETs get rejected for is coding skills<br />

Make sure that you prepare for all <strong>the</strong> same coding and algorithm questions that a regular<br />

developer would get<br />

» Practice Testing <strong>the</strong> <strong>Coding</strong> Questions: A very popular format for SDET question<br />

is “Write code to do X,” followed up by “OK, now test it ” So, even when <strong>the</strong> question<br />

doesn’t specifically ask for this, you should ask yourself, “how would you test this?” Remember:<br />

any problem can be an SDET problem!<br />

Full, Compilable Solutions<br />

For your convenience, you can download <strong>the</strong> full solutions to <strong>the</strong> problems at http://www<br />

careercup com/careercup_book_solutions This file provides executable code for all <strong>the</strong> Java<br />

solutions The solutions can be opened and run with Eclipse<br />

Suggestions and Corrections<br />

While we do our best to ensure that all <strong>the</strong> solutions are correct, mistakes will be made Moreover,<br />

sometimes <strong>the</strong>re is no “right” answer If you'd like to offer a suggestion or correction,<br />

please submit it at http://xrl us/ccbook<br />

4 3<br />

<strong>Cracking</strong> <strong>the</strong> <strong>Coding</strong> <strong>Interview</strong>

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

Saved successfully!

Ooh no, something went wrong!