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.
Thanks!
Hi, Great kata! I just published a C++ translation of it.
Still same error... I'm not sure why. Maybe you can try to resubmit your translation?
Hi,
It says "Description cannot be approved, recent changes from related record must be merged first." when I try to approve it.
Can you change up the description a bit to see if it'll work?
Thanks!
hi, thanks for the suggestion, I'll update it when im on my computer
Hi, the reason you're getting this problem is that you forgot to declare the "i" you are using in the for loop as a variable. As a result, the "i" is now a global variable, and each time you call flatten, "i" gets reset to 0.
always use for(var i = 0;i < x.length;i++){....}
Hey, I think this test case is incorrect :
string input="1 2 3 4\r\n5 6 7 8\r\n9 10 11 12";
string result=ls.Solve(input);
should be SOL=(-8/9; 7/9; 10/9)
The determinant of
1 2 3
5 6 7
9 10 11
is 0. So you can't have a unique solution :o
looks like one of the default insert example katas
exactly my thoughts
please fix it by limiting to small numbers or allowing percentage error
Ah you're right. I editted the solution a bit and forgot to take out.
if (number == 99 || number == 98)return 1;
It should work if this is removed.
Basically the same kata already exists here :
https://www.codewars.com/kata/5226eb40316b56c8d500030f/solutions/javascript
I've been getting tons of codewars errors lately too =p
Loading more items...