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 to the kata creator 🙌 — fun challenge on array iteration and difference calculation!
because it's readable and the intention is clear; no one can seem to figure out why .digits does what it does
Description should be language-agnostic
JS Node 18. should be enabled
Here's an iterative stack-based solution
Same for Python and presumably other languages, another occurrence:
Not really an issue, no performance tag, no explicit mention of large arrays. A performant version may be created but I doubt if it is any different than myjinxin's three sum and four sum kata (potentially others ... ->
Maybe check this article: https://docs.codewars.com/training/troubleshooting/#print-input
There is an issue in this kata the test cases run smoothly but when I click attempt it says should work for n = 0 or something above those lines. I tried using and if statment then it says +0 should equal 1 when I change it to return 1 it says 1 should equal 0. I don't know how to debug this. this is the only test cases that isn't working.
For anyone wondering, this is definitely and absolutely NOT best practice! Its not even a clever solution.
5 years old issue is still not resolved. Bad kata
Approved
python new test framework is required. updated in this fork
Your code will compare numbers against itself (which fails for cases when
n = 0) since the diff between a number and itself is always0Loading more items...