Cracking the coding interview--问题与解答
出处: http://hawstein.com/posts/ctci-solutions-contents.html
声明:本文采用以下协议进行授权:
前言
《Cracking the coding interview》是一本被许多人极力推荐的程序员面试书籍, 详情可见:http://www.careercup.com/book。 里面有150道程序员面试题目及相应的解答。书中大部分是编程题目, 并且配有相应的java程序(有些地方有错误或是有更优的方案)。我把书中的题目做了一遍, 并且记录下来,包含自己对问题的一些思路及看法,许多问题给出了两种以上的解答方案。 由于个人平时使用较多的是C++,所以程序是用C++编写,所有的代码都托管在Github上:
https://github.com/Hawstein/cracking-the-coding-interview
记录下来的主要目的是加深自己对问题的理解,如果此外还能对一两个人起到帮助作用, 那真真是再好不过了。:P
目录
Chapter 1 | Arrays and Strings
1.4
1.5
Chapter 2 | Linked Lists
2.2
Chapter 3 | Stacks and Queues
3.1
3.5
Chapter 4 | Trees and Graphs
4.2
Chapter 5 | Bit Manipulation
5.4
Chapter 6 | Brain Teasers
Cracking the coding interview—Q6.1~Q6.6
Chapter 7 | Object Oriented Design
XDDDDDD
Chapter 8 | Recursion
8.1
8.3
8.4
Chapter 9 | Sorting and Searching
9.2
9.6
Chapter 10 | Mathematical
Cracking the coding interview—Q10.1~Q10.7
Chapter 11 | Testing
Cracking the coding interview—Q11.1~Q11.6
Chapter 12 | System Design and Memory Limits
12.5
12.6
Chapter 13 | C++
13.1
13.3
13.4
13.5
13.6
13.7
13.9
Chapter 14 | Java
Pass
Chapter 15 | Databases
15.1
15.3
Chapter 16 | Low Level
16.1
16.5
Chapter 17 | Networking
17.2
17.3
Chapter 18 | Threads and Locks
18.1
18.2
Chapter 19 | Moderate
19.1
19.2
19.3
19.8
19.11