Skip to content

Instantly share code, notes, and snippets.

@omarish
Created July 10, 2012 00:42
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarish/3080200 to your computer and use it in GitHub Desktop.
Save omarish/3080200 to your computer and use it in GitHub Desktop.
Priceonomics Puzzles

Priceonomics Programming Puzzle, Summer 2012

We love solving puzzles at Priceonomics. We also like meeting people who like to solve puzzles. Here are two interesting puzzles we've faced at some point in the past months that we'd like to share with you.

If you have any questions, contact omar@priceonomics.com.


Puzzle 1: Heatwave

Problem

Given the following data set:

http://dl.dropbox.com/u/274/readings_formatted.json

Find the average hourly temperature in each of the three cities. Average hourly temperature is defined as the mean of the temperature readings within each hour (0:00 -> 0:59).

Submit

To see if you've found the correct answer, visit the following URL:

http://priceonomics.com/static/X.html

where X is a number, calculated as X = floor(c^(b-a-7)) , where a=avg temperature at NRT from 13:00-13:59 on 6/15, b=avg temperature at IAD at 14:00-14:59 on 6/16 and c=avg hourly temperature in SFO at 13:00-13:59 on 6/17. Brute-forcing our static directory is currently not allowed :).

Bonus: Solve this using Python's itertools library and submit your solution.

Other Notes

If you enjoy solving puzzles, you should consider joining our team. We're hiring. Learn more about the open positions on our jobs page.

@econpy
Copy link

econpy commented Sep 17, 2012

Solved it :) Just sent an email to the address which includes my Python script along with a little note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment