Posts Tagged ‘Programming’

Google Code Jam 2012 – Round 1C 2012

Google Code Jam Logo Thumbnail

4230 tried the first problem, but only 3189 people are listed in the scoreboard. Problem 1 (Diamond Inheritance): Small Set: 3077/4230 users (73%) Large Set: 2387/3044 users (78%) Problem 2 (Out of Gas): Small Set: 471/766 users (61%) Large Set: 73/253 users (29%) Problem 3 (Box Factory): Small Set: 1071/1810 users (59%) Large Set: 308/788 [...]

Google Code Jam 2012 – Round 1B 2012

Google Code Jam Logo Thumbnail

5614 tried the first problem, but only 3281 people are listed in the scoreboard. So quite a lot tried to solve a problem, but couldn’t even solve one. I think these problems were much harder than the ones from Round 1A 2012. Problem 1 (Safety in Numbers): Small Set: 2695/5614 users (48%) Large Set: 2016/2686 [...]

Google Code Jam 2012 – Round 1A 2012

Google Code Jam Logo Thumbnail

3691 people are listed in the scoreboard, but 3851 tried the first problem. So I guess the number of contestants might even be higher. Problem 1 (Password Problem): Small Set: 3511/3851 users (91%) Large Set: 2329/3376 users (69%) Problem 2 (Kingdom Rush): Small Set: 1912/3466 users (55%) Large Set: 1617/1848 users (88%) Problem 3 (Cruise [...]

Google Code Jam 2012 – Qualification Round

Google Code Jam Logo Thumbnail

I’ve passed the Qualification Round of Google Code Jam 2012. I’ve learned, that I am not allowed to submit the large dataset after the first 8 minutes. 18,365 programmers took part in this contest. 15,692 had at least 20 points and advanced to the First Rounds. These are my solutions: Problem A: Speaking in Tongues [...]

PHP: A strange language

PHP logo thumbnail

Inconsistency Underscores Some functions use underscores between words, while others do not: gettype vs. get_class Order of Arguments Sorting This doesn’t work. If you don’t know why, you should take a look at sort. PHP Logo Add ‘?=PHPE9568F34-D428-11d2-A769-00AA001ACF42′ to any PHP script and take a look at the output. For example at Wikipedia. Argument order [...]

Surprising C errors

Compare programming languages

Those errors might be surprising and a good exercise for C beginners: Empty printf Macros Single and Double quotes Thanks to drpaulcarter.com for this example: Pointers Loops No compiler error, but an infinite loop. Null terminator of Strings Again, you don’t get a compiler error, but some strange results: Further reading C Preprocessor and macros [...]

Comparing programming languages

Compare programming languages

If you want to compare programming languages, I can recommend the following links: literateprograms.org, Rosetta Code, 99-bottles-of-beer.net, Comparison of programming languages (basic instructions), Comparison of programming languages In particular, I like the following pages: Fibonacci numbers (literateprograms, rosettacode) Hello World (literateprograms, rosettacode) If you want to learn a new language you can look at the [...]