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.
Fixed, thanks for pointing that out
Are you certain you're looking at the correct log, and not the previous or the next testcase?
Ok so how it's possible that this:
[[[1,3,2,5,7,9,4,6,8],
[4,9,8,2,6,1,3,7,5],
[7,5,6,3,8,4,2,1,9],
[6,4,3,1,5,8,7,9,2],
[5,2,1,7,9,3,8,4,6],
[9,8,7,4,2,6,5,3,1],
[2,1,4,9,3,5,6,8,7],
[3,6,5,8,1,7,9,2,4],
[8,7,9,6,4,2,1,3,5]], true]
Reading the docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll#browser_compatibility
Now it works fine, thanks. But how I was supposed to know that lol?)))
Written by me, commented and refactored by ChatGPT
My solution passed all the tests, although it shouldn't have.
https://www.codewars.com/kata/reviews/5930214c40205d2795000037/groups/63dcb3f00779ad0001e4bcfa
LC translation
this translation modifies the description
JS tests have been reused verbatim
number of tests has been reduced for performance reasons ( and even then, it's close, very close, to 12 seconds )
I always add translations and make edits with forks, only some very minor issues (like typos) directly with code editor.
I usually also approve (or self-approve, since I am technicaly the author) languages I am somewhat confident with. But I plan to add at least as many languages as were there in the retired kata, and I am not too familiar with many of them, so If I create translations for them, I will probably leave them for review.
@Wertelka
The problem has been solved, but you will not see the changes on your computer unless you first save your code somewhere, and then hit the 'RESET' button (this will erase what you have coded so far, hence why you should save it).
Should be fixed.
I am not a native either, and I understand your struggle. What I was saying is that the sample test marked as valid is actually invalid.
Do you speak Russian by any chance?
But there is no "Z"
I am not an English speaker. Would you have a suggestion for better wording?
847|265|103
136|708|245
052|143|867
---+---+---
420|671|538
678|532|014
315|480|726
---+---+---
564|017|382
781|324|650
203|856|471
==> expected: true but was: false
This sample test is described as "valid BUT with 0s instead of 9s". That "but" renders the solution invalid, since the incomplete sudoku can't be considered solved.
It even says it in the task: