Border Challenge

The Problem:

The Bureau of Transportation Statistics regularly makes available data on the number of vehicles, equipment, passengers and pedestrians crossing into the United States by land.

For this challenge, I will calculate the total number of times vehicles, equipment, passengers and pedestrians cross the U.S.-Canadian and U.S.-Mexican borders each month. In addition, I will find the running monthly average of total number of crossings for that type of crossing and border from the input dataset provided to me.

Note: I cannot use any 3rd party libraries. Only those default to the specific language I choose.

How I solved this problem?

In short, I used Python3 and sorted through the data accordingly. More information and details are on my Github page!

Hardest Part about the Challenge:

The hardest part about the challenge was getting a brute force solution. Since this was my first coding challenge, I was a bit nervous throughout the process! I was trying to write clean and legible code the whole time, but instead I should I have focused on getting an answer and focus on the cleanup. After a few attempts, I managed to arrive at a brute force solution. But then I was asked to write an optimized version, which took an even longer time to arrive at.

The dataset is available on my kaggle page.