Skip to content

Commit e4ddea4

Browse files
committed
Updated readme
1 parent 54490b6 commit e4ddea4

File tree

12 files changed

+27
-8
lines changed

12 files changed

+27
-8
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="_Introduction"/>
3+
<classpathentry kind="src" path="Introduction"/>
44
<classpathentry kind="src" path="Chp. 01 - Arrays and Strings"/>
55
<classpathentry kind="src" path="Chp. 02 - Linked Lists"/>
66
<classpathentry kind="src" path="Chp. 03 - Stacks and Queues"/>

.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>cracking-the-coding-interview-solutions</name>
3+
<name>Cracking-the-Coding-Interview_solutions</name>
44
<comment></comment>
55
<projects>
66
</projects>

Chp. 01 - Arrays and Strings/_1_8_Zero_Matrix/ZeroMatrix.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ public static void zero(int[][] array) {
1717
}
1818
}
1919

20-
/*
21-
* Re-loop through 2-d matrix and set whichever entries are necessary to
22-
* 0
23-
*/
20+
/* Re-loop through 2-d matrix and set whichever entries are necessary to 0 */
2421
for (int row = 0; row < M; row++) {
2522
for (int col = 0; col < N; col++) {
2623
if (rows[row] == true || cols[col] == true) {

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
### Cracking the Coding Interview (6th Edition) - Solutions (Java)
1+
### Efficient solutions to [Cracking the Coding Interview (6th Edition)](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850?ie=UTF8&keywords=Cracking%20the%20Coding%20Interview&portal-device-attributes=desktop&qid=1497056550&ref_=sr_1_1&s=books&sr=1-1) problems
22

3-
My solutions to the questions in the wonderful book: [Cracking the Coding Interview](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850?ie=UTF8&keywords=Cracking%20the%20Coding%20Interview&portal-device-attributes=desktop&qid=1497056550&ref_=sr_1_1&s=books&sr=1-1)
3+
![Cracking the Coding Interview](https://images-na.ssl-images-amazon.com/images/I/51F6Lwyq5JL._SX348_BO1,204,203,200_.jpg)
4+
5+
Solutions are coded using Java 8.
6+
7+
## Setting up the code in Eclipse (or a similar IDE)
8+
9+
This will enable you to easily test and edit the code.
10+
11+
0. Download [Eclipse](http://www.eclipse.org/downloads/eclipse-packages/), or a similar IDE.
12+
1. Open Eclipse. In the **Menu Bar** in the top-left of the screen, click **File -> Import**. An **Import** dialog box will open.
13+
![](https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions/tree/master/screenshots/instructions_1.png)
14+
15+
2. In the **Import** dialog box, select **Git -> Projects from Git** and click **Next**.
16+
![](https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions/tree/master/screenshots/instructions_2.png)
17+
18+
3. Select **Clone URI** and click **Next**.
19+
![](https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions/tree/master/screenshots/instructions_3.png)
20+
21+
4. In the URI field, copy/paste the following link: https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions.git
22+
![](https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions/tree/master/screenshots/instructions_4.png)
23+
24+
5. Keep clicking **Next** until you reach the final dialog box. Click **Finish**. The dialog box will close. All the code should now be visibile in the **Package Explorer** on the left of the screen.
25+
![](https://github.com/rshaghoulian/Cracking-the-Coding-Interview_solutions/tree/master/screenshots/instructions_5.png)

screenshots/instructions_1.png

250 KB
Loading

screenshots/instructions_2.png

118 KB
Loading

screenshots/instructions_3.png

76.7 KB
Loading

screenshots/instructions_4.png

121 KB
Loading

screenshots/instructions_5.png

118 KB
Loading

0 commit comments

Comments
 (0)