Result: incomplete
I've never implemented Dijkstra's algorithm before, and I couldn't do it in time.
gpsduel.cpp
C++ solutions, both training and real, are posted when possible; they are provided for reference purposes only.
Showing posts with label problem-2. Show all posts
Showing posts with label problem-2. Show all posts
Friday, May 23, 2014
March 2014 Silver Problem 2: The Lazy Cow
Result: 5/10 *****ttttt
Silver is significantly more difficult than bronze.
lazy.cpp
Silver is significantly more difficult than bronze.
lazy.cpp
Friday, February 14, 2014
February 2014 Bronze Problem 2: Auto-complete
Result: 7/10 *****tt**t
Just sort the entries, but also store the original position, then process the requests.
auto.cpp
Just sort the entries, but also store the original position, then process the requests.
auto.cpp
Tuesday, January 14, 2014
January 2014 Bronze Problem 2: Bessie Slows Down
Result: 1/10 *xxxxxxxxx
My solution is O(N log N), but I somehow made an error somewhere (probably rounding errors).
slowdown.cpp
My solution is O(N log N), but I somehow made an error somewhere (probably rounding errors).
slowdown.cpp
Tuesday, December 17, 2013
December 2013 Bronze Problem 2: Cow Baseball
Result: 1/10 *xxxxxxxxx
N2 log N time might be too slow.
baseball.cpp
N2 log N time might be too slow.
baseball.cpp
Tuesday, November 19, 2013
November 2013 Bronze Problem 2: Goldilocks and the N Cows
Result: 7/10 *******ttt
I think that testing every boundary line might be slow, but it's the only way I can think of that does it completely.
milktemp.cpp
I think that testing every boundary line might be slow, but it's the only way I can think of that does it completely.
milktemp.cpp
Tuesday, February 12, 2013
February 2013 Bronze Problem 2: Cow Crossings
Result: 2/15 *xx*xxxxxxttttt
I realized that I have made a mistake by not checking subsequent cows against cows that have already collided. Example: Cow 1 collides with Cow 2, so they are both marked as collided. Cow 3 will not be checked against Cow 2.
crossings.cpp
I realized that I have made a mistake by not checking subsequent cows against cows that have already collided. Example: Cow 1 collides with Cow 2, so they are both marked as collided. Cow 3 will not be checked against Cow 2.
crossings.cpp
Tuesday, December 18, 2012
December 2012 Bronze Problem 2: Scrambled Letters
Result: 1/10 *xxxxxtttt (5 wrong answers, 4 timeouts)
Tuesday, November 20, 2012
Subscribe to:
Posts (Atom)