-
Code Jam 2008 Round 1A, Problem B: Milkshakes
Another day, another problem. Milkshakes it is! And it’s pretty straightforward: You own a milkshake shop. There are N different flavors that you can prepare, and each flavor can be prepared “malted” or “unmalted“. So, you can make 2N different types of milkshakes. Each of your customers has a set of milkshake types that they…
-
Code Jam 2008 Round 1A, Problem A: Minimum Scalar Product
Hey there, since things are getting a little more calm, I can focus once more to solve some nice Code Jam problems. And here we go, from the first official tournament round: Problem A: Minimum Scalar Product. It says: You are given two vectors v1=(x1,x2,…,xn) and v2=(y1,y2,…,yn). The scalar product of these vectors is a…
-
On unmantainable software
I’ve read a very interesting article today about creating unmaintainable code (was also featured on Slashdot, funny comments ahead!) and, as many fellows have observed, documentation is indeed its most important cause factor. Lack of documentation (very frequent) or even misleading text (that’s unusual, but can happen by being not up-to-date) gets in the way…
-
CodeJam trouble, hard problems ahead!
Well, since we’re mostly finished with the company project, I can now put some of my attention here again. I’ts been a while! I’ve been trying to crack some hard (for me at least) CodeJam problems, from probabilities to geometry and I’ve not been able to move on much, must study a lot more. In…
-
My CodeJam problems at GitHub!
Since this week I’ll be busier than usual, I’m trying to do little things everyday. Well, today I created a new GitHub repository for my CodeJam problems. If you’d like to check out, then check out! 😀 I guess this way I can work in a more flexible way. See ya!