Guys check out http://codegolf.com this site has great coding challenges..
it seems pretty slow though :(
nope..thanks :)
I tried the bottles of beer one and I couldn't get less than 284 (not including spaces) characters... :( The first ranked user using Python used 181. They cut out about 100 words! Good site, it's interesting because it makes you try to think of other ways to do it.
I got 214 characters excluding spaces. How these guys do it with lower than 200 characters is beyond me. :P
Correct that: It's 224, excluding spaces :P
224! Okay I gotta work out another way...
Actually, scratch that too. Damn those plurals! BTW Joz, watch your code. nottle and bottles make a difference.....
i gave up..after 2 tries..it showed that my output was totally wrong!! idk what was wrong..it looked all the same! :(
and the proxy errors i get while uploading my solution makes it worse :(
Check your plurals, bottle and bottles are different words. That's what thwarted my first attempts.
Now that just baffles me. What method do they use to count the characters anyway? My word processor says that my entire code has 339 characters, including spaces. Yet the site says that I have 353?
do you know if loading a file is OK? like text = openFile(x.txt) because if so i can cut out song from your code using just that line
whoa!! that should be cheating i guess -_-
you guess, but i don't see it being barred from the rules
I don't know. I mean, we load our script to their site, and I don't see any options anywhere to load an additional file along with the script.
That is a shame, Loading a second file would cut down your code an insane amount
Join our real-time social learning platform and learn together with your friends!