Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
glad you enjoyed it, and thanks for doing my kata man! Your solution looks really clean btw, and yeah, at least for me, this kata (and the series in general) wasn't as easy as I thought it was. (also partially because I cannot understand regular expressions for the life of me).
Wrote a piece of bug riddled code that took me ages trying to debug. Gave up and tried again next day.
Gave up again, started from scratch. Got it done in 10 minutes with a slightly different approach.
Either I'm a complete moron, or this thing is a lot harder than it looks.
Loved it!
Lua translation
I have a couple of more ideas, but oh gosh, creating these is exhausting. Most of the bugs presented in the XCOM bug fixing tasks are very simple, and I want them to be interesting for unexperienced programmers to draw their attention to traps and pitfalls lurking out there in the wild. But then I need to be careful to not make the theme too scary for beginners, and the problem must be set up in a way that it is worth actually fixing rather than discarding the whole initial code and rewriting it from scratch. I am glad that the experienced users seem to like the challenges. I would still love to hear what the target audience thinks about them. It would not be much sense in creating easy problems which scare off beginners and which are liked by hardcode coders solely due to the theme and setup :)
I like these. You start with thinking "What the heck is he on about now?" Then you try to run the code and it takes a split second to understand what's the problem. Hats off, sir.
I came here to give the same comment.
Upvote this one instead.
(Haskell, maybe others)
Fixed test cases allow for solutions that do not properly check for square matrices such as this solution.
I've made a Haskell fork that adds the following test cases:
Not sure what to make of vector V. Are the entries b1, b2 ... bn the result of a calculation, or just some random numbers ?
Approved by someone
8 years old and only 12 solved this thing?
Very curious of what I'm getting into. :-)
Ruby translation kumited - please check and approve!
approved by someone
I can relate, lol
C translation
As mentioned by several commenters below, as of this message, the Java version of this Kata is broken. In order to pass the tests, if you compute any values that exceed the max value for an int, instead just put 2147483647 (the max value for an int) in the applicable index of the array.
Loading more items...