Google Interview Question

Given a chunk of code, find the errors and fix them.

Interview Answer

Anonymous

Oct 8, 2015

This question was pretty straightforward, though I was not expecting something like it. Just went through the functions to find bugs (e.g. comparing pointer values instead of actual values)