Day 96: Sometimes Code Makes No Sense

Got another question right BUT I tried the next question and I am absolutely lost. Sometimes there are algorithms that I need to run myself to understand what is going on. This latest question is definitely one of them. The thing is, I am not that familiar with Java but all the examples in this book thus far have been in Java. So… when the algorithm is a bit more complicated or employees some methods or functions that are unique to Java I get confused.

TLDR;

Okay, so here are the highlights of what I did:

  • Still reading through the book “Cracking the Coding Interview” by Gayle Laakmann McDowell. Still working on the practice problems. Completed question 10 and got it right. I also started working on question eleven but the Java specific functions calls confused me. I think I need to run this code myself to grasp what is actually going on. Currently I cannot visualize what will be output once the function is called. So hopefully once I run the code myself I can grasp what the runtime costs would be in Big O notation.

Conclusion

That’s all for today. If you are interested in the MIT course you can check out the video lecture I’m currently going through. The lecture is helpful but isn’t sufficient by itself. Anyways, until next time PEACE!