Computer Science Canada

Challenge yourself

Author:  wtd [ Wed May 11, 2005 7:08 pm ]
Post subject:  Challenge yourself

http://www.pythonchallenge.com/

The idea is to use Python, but I'm challenging myself to solve them with O'Caml, just as an exercise in how well I remember the language. I'm working on number 4 now. 18 left after that.

Author:  Naveg [ Wed May 11, 2005 10:21 pm ]
Post subject: 

i'm on the fifth one right now but it seems the site just went down

Author:  Naveg [ Wed May 11, 2005 11:08 pm ]
Post subject: 

you might have trouble doing 5 in O'Caml....

Author:  wtd [ Wed May 11, 2005 11:13 pm ]
Post subject: 

Vladimir wrote:
you might have trouble doing 5 in O'Caml....


What is it?

Author:  Naveg [ Wed May 11, 2005 11:17 pm ]
Post subject: 

you have to follow a php linked list that is about 300 pages long, as the source of the first page implies, you'll need the urllib module for python

Author:  wtd [ Thu May 12, 2005 1:54 am ]
Post subject: 

HTTP GET requests are not overly difficult in O'Caml, provided you have the netclient library installed (it's in the Debian repos).

code:
open Http_client.Convenience;;

print_endline (http_get "http://www.compsci.ca/v2");;

Author:  Naveg [ Thu May 12, 2005 6:50 pm ]
Post subject: 

let me know when you get to peak hell, i need some guidance.

I found and used the p***** module and got the resultant dataset, but i'm now at a loss for what to do with it.


: