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.
The description is misleading:
"The MxN board is given" but the examples show, that the first value (n) is number of rows.
My attempt gives me "Passed: 97 Failed: 1 Errors: 1"
My problem is, that I am unable to find the problematic testcase, since all testcases shown in the output say "Test passed". Even when I return wrong results, there is still 1 error, which I can't locate.
Any hints?
I have to apologize ... :-(
Good kata!
Since the specification of the function says "remove the last element", but you expect an array with eight elements when you input a ten element array, I know why the random tests fail.
So, what's the goal of this kata? Expect that your costomer doesn't know what he really wants?
Bad Javascript kata!
integer_list should not be given as parameter but via the this reference.
thumb up!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I strongly support this suggestion!
Since LISP (as practical implementation of the lambda calculus) is one of the foundations of programming, there should be a member of the LISP family available here. Scheme is in my opinion the best language to select because there exists with "Structure and Interpretation of Computer Programs" (short SICP) an excellent introduction.
No need to use this syntactic sugar ... Javascript hasn't got classical inheritance.
This kata should be deleted. There is no need to use syntactical sugar to make things more complicated ... except for uneducated Java coders.
This comment is hidden because it contains spoiler information about the solution
You are comparing really different worlds here: Java is a procedural language with class based inheritance, whereas Javascript is a functional language with prototype based inheritance, hidden under a C-like syntax. The last thing made wide scale adoption of the language easy, but confuses all those Java coders.
Since Javascript looks like a procedural language, and offers all those syntax elements, it sure must be a procedural language, like e.g. Java. And then all those OOP stuff is clearly missing.
Except this is totally wrong. You really should start learning functional programming. Most of the design patterns, which where defined for organizing procedural code, are simply not needed in a functional language. There are almost always better solution. And the power of the prototypal inheritance is shown, when it is easily possible to emulate classical inheritance. Can you emulate prototypal inheritance in Java as easily?
A good read: http://steve-yegge.blogspot.de/2006/03/execution-in-kingdom-of-nouns.html
The Javascript version of this kata should be deleted!
Javascript isn't Java, not even a classical language. So, when there are no classes, and instances of classes, but only objects, what use is the singleton pattern? When you need only a single object with certain properties, then only create one.
Adding "class" to Javascript was a horrible mistake!
Will these ignorant Java coders ever learn, that there languages without classical inheritance?
Loading more items...