Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 2004 CCC S5 solution with memoization troubles
Index -> Contests
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Thu Aug 19, 2004 5:51 am   Post subject: (No subject)

I hate to look like a fool, but I was wrong in this case. O'Caml doesn't provide automatic memoization of functions.

In this case the only real benefit is the opportunity to apply the O'Caml optimizing compiler (which creates wickedly fast code), and the ability to work in a really nice language. Smile
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Tue Aug 24, 2004 9:45 pm   Post subject: (No subject)

i think your solution is wrong because the second test case you posted should return more than 19... remember the guy has to go from (0,0) to (width,0) and can move up/down/right and cannot go to places he's already been.
wtd




PostPosted: Tue Aug 24, 2004 9:55 pm   Post subject: (No subject)

zylum wrote:
i think your solution is wrong because the second test case you posted should return more than 19... remember the guy has to go from (0,0) to (width,0) and can move up/down/right and cannot go to places he's already been.


Yeah. I fixed that. I was being a moron when I wrote that. Smile
Display posts from previous:   
   Index -> Contests
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: