Read Also : Best Books For Learning Java
Best Books for Coding/Technical Interview
I have discussed with my friends who made it into the top companies. The first question I asked to them was which books they choose for preparation. After asking a dozen of friends , reading online reviews and personally going through most of the below mentioned books, now, I am recommending them to you.1. Cracking the Coding Interview
This book was first released in 2008.After hitting the shelves, sales took off immediately and become one of the bestsellers in its domain. It is now in sixth edition.
There are 189 programming interview questions ranging from the basics to the trickiest algorithm questions. Hints on how to solve each of the 189 questions, just like what you would get in a real interview.
It also teaches you how to do well at coding interviews.
There might be a possibility that you might get these questions in your own interviews since Gayle(author) is choosing questions that are popular among interviewers today.
This book also has one dedicated chapter to system design questions with solutions which will be sufficient to tackle system design interview questions.
This book is written by Gayle laakmann mcdowell. She is not a recruiter but a software engineer. She had worked in Google, Apple and Microsoft.
2. Data Structures and Algorithms Made Easy in Java
The other good thing about this book is that there are multiple solutions provided for each problem with different level of space and time complexities.
One little annoying thing, there are some typos in the book for java coding.
3. Elements of Programming Interviews in Java : The Insiders Guide
This book contains various chapters, each featuring a set of problems about a particular data structure or programming technique(Searching, Recursion, Dynamic programming). Wide variety of problems are covered in each chapter.
Each problem challenges you to put your brain in it.The solutions are also provided with good code quality. If you are looking to solve some challenging problems on data structures then this book is for you.
4. The Algorithm Design Manual
Author has extensively covered the Graph topic with chapters like Graph traversal, weighted graph algorithms and graph problems. No question, this book is one of the best resource for algorithms. I especially liked the "war stories" where author shows you how he was able to apply theory in practice.
Little annoying thing about this book is the variable and method names in the code samples. They are mentioned as x,n,c etc. which is difficult to understand.
For me its a great book and and is indispensable for a good software engineer. Author of this book is Steven S. Skiena.
5. Programming Interviews Exposed
At the end of the book, you will find behavioral questions and resume creation tips. There are a few problems related to programming questions.Author has preferred digging in deep to a few good problems, rather than brief solutions to many problems.
Overall, if you are looking to get a job in software field then this is a good companion book along with cracking the coding interview.
6. Programming Pearls

The writing style is clear. This book also contains small case studies, real examples and interesting exercises for learning about how to program.
I would recommend having algorithm book near by when reading Programming Pearls.
BONUS :
If you are looking to practice the algorithm questions for free then leetcode.com is the best online resource. It contains 800 algorithm based interview questions. You can try free version
I have shared the 6 best books for coding or programming interview. All the books are best of best.You can decide which book to choose depending upon goals and companies you are going to interview.