Skip to content

subfuzion/cracking-the-coding-interview-in-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cracking the Coding Interview in Go

I bought Cracking the Coding Interview, 6th Ed. as a refresher and study guide. The book is well worth the price for its succinct organization and strategies and hints toward problem solving.

Seeing someone else's implementation is helpful can be helpful, especially when you get stumped, but to truly benefit from the book, it is absolutely vital to write code yourself.

There is an existing repo, but I have not looked at it. I prefer to attempt to solve the problems on my own using the hints and strategies presented in the book. I have definitely needed to refer to the book's solutions, however, which are written in Java.

I have implemented the solutions as tests using the Go testing package. I start each implementation by writing the test cases that I would like to pass, and then work toward writing the solution.

You can run all or specific tests. Examples:

$ go test -v -timeout 30s ./...

$ go test -v -timeout 30s -run ^TestPartition$ ./chapter-02

I've only just begun, so this is definitely a work in progress.

About

Cracking the Coding Interview using Go tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages