1st edition eBook as the perfect companion to LeetCode.com’s Online Judge service. Understand what it takes to write clean code and apply these fundamentals in a real interview.
This is Revision v1.0.1, the latest revision is v1.0.3.
Book URL: https://leetcode.com/book/
Revision changes: https://selz.com/item/546c6e1ab7987209fc7fd418
Revisions:
v1.0 -- Initial release
v1.0.1 (11/17) -- Fix a bug in Question 32: Binary Tree Upside Down, page 60. TreeNode p = root, ... should be. For the top down approach's code line no. 2: TreeNode p = null, ...
v1.0.2 (11/23) -- Revised Problem 16: "Read N Characters Given Read4 - Call multiple times" code to remove unnecessary variable sz, and also make the code slightly easier to understand.
v1.0.3 (12/18) -- Question 3 - Two Sum III, pg 8: Corrected runtime complexity for the Binary Search + Two Pointers approach, and added a new approach based on Sorting. Question 14: One Edit Distance, pg 28: Fixed edit distance operation incorrect ordering.