My solution is in Python, though my algorithm sucks. I wrote this with around 10 minutes to go in the competition, and I think from memory I only passed 6/10 test cases. Algorithmic complexity is O(x^2) - which, when talking to someone who had the same complexity in their C++ algorithm, passed 7/10 test cases. My conclusion therefore is to next year use C++ and not Python
Any suggestions to improve on the algorithm are welcome.
Spoiler:
Results 1 to 1 of 1
-
01-15-2012 03:08 AM #1
- Join Date
- Oct 2009
- Posts
- 1,018
- Rep
- 255
Interviewstreet CS 2 - Direct Connections
Tags for this Thread




Reply With Quote

Bookmarks