27.10.2014 Views

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 20 | Hard<br />

Input: DAMP, LIKE<br />

Output: DAMP -> LAMP -> LIMP -> LIME -> LIKE<br />

________________________________________________________________pg 291<br />

20.11 Imagine you have a square matrix, where each cell is filled with ei<strong>the</strong>r black or white.<br />

Design an algorithm to find <strong>the</strong> maximum subsquare such that all four borders are<br />

filled with black pixels.<br />

________________________________________________________________pg 293<br />

20.12 Given an NxN matrix of positive <strong>and</strong> negative integers, write code to find <strong>the</strong> submatrix<br />

with <strong>the</strong> largest possible sum.<br />

________________________________________________________________pg 295<br />

20.13 Given a dictionary of millions of words, give an algorithm to find <strong>the</strong> largest possible<br />

rectangle of letters such that every row forms a word (reading left to right) <strong>and</strong> every<br />

column forms a word (reading top to bottom).<br />

________________________________________________________________pg 298<br />

CareerCup.com<br />

9 2

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

Saved successfully!

Ooh no, something went wrong!