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.
Your solution has a bug, it fails for some very specific inputs. It even fails example tests, which you can see and inspect.
Your solution being buggy is not a kata issue.
arrow function + ternary = one line code. :)
How would we know ? Post your code, with proper markdown formatting and a spoiler flag, and we might be able to help. In any case, this is not a kata
issue
(= a bug within the kata). To ask for help/explanations, ask aquestion
.Why when I test my code on fiddle, is working with sort method for arrays, but here it give me an reverse array?
I think this should be changed to 7kyu.
please format it in a proper way so that other people will look at the code...
Because the ASCII/Unicode code point of the digit '0' is 48, not 0.
Can someone explain to me why converting a string to char with charAt() in java adds 48 to the resulting int?
C# approved at some point.
Added to Swift
closing as user error, thanks sberthouzoz for spotting the bug
You are getting this error because your code is attempting to iterate
n
within themap
function.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
//distance per volue
//km per gall
//km per litr
//какую дистанцию за еденицу объёма
//сколько километров на галон
//сколько километров на литр
Loading more items...