# My attempt at Google Code Jam 2014 : Qualification Round

I had my university exams and GCJ on the same day, and was busy in Infosys recruitment drive also. Anyhow, I did manage to attempt two problems out of the four. Here is my approach to the problems:

**Problem A: Magic Trick (Problem Statement)**

Wasn’t so tricky. All I needed to do was to find the common elements in the given rows of two 4 x 4 matrix.

**Problem B. Cookie Clicker Alpha (Problem Statement)**

Here I tried to find the condition for which buying a cookie farm is more profitable than waiting for x cookies:

Gratz 😀

I am an absolute brute-force man. I’ve to learn data structures and algos to advance in algorithmic programming.

Nicealert(‘Louis was here’);