Thursday, 9 July 2015

Introduction

https://github.com/prasanthlouis/C-equivalent-to-Cracking-the-Coding-Interview

So here's my attempt to solve the questions provided in Cracking the Coding Interview in C++/C.

The idea came up because I wanted to become better at C++/C instead of learning Java all over again, so I was fairly disappointed that all the solutions were provided in Java.

Then I thought, there might be other readers who'd love a C implementation of the solutions provided in the book.

So this blog is dedicated to anyone who wants the solutions provided in C.

After I complete each section, I'll come back and write a post on it rather than giving a post on each question because come on, lets be honest. Nobody wants to read pages of a solution to a single question if it can be explained easily.

Note : This isn't perfect.

I just wrote code to how I perceived the question.

I first read the question and thought on how to solve it.

Next I read the algorithm and tips provided to see if there was a better solution.

Then I closed the book and tried to implement the algorithm in C++.

(No, I didn't look at the code they provided unless I was absolutely stuck).

You can get the code on github: https://github.com/prasanthlouis/C-equivalent-to-Cracking-the-Coding-Interview

No comments:

Post a Comment