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.
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
//какую дистанцию за еденицу объёма
//сколько километров на галон
//сколько километров на литр
Your solution has a bug, it uses uninitialized variables.
Bugs in your solution are not a kata issue.
First element of the array should be 0; you had -6. So your code is wrong.
hint: operator precedence.
45762893920
is bigger than Integer.MAX_VALUE and java can't use it as an int. You have to tell java to treat it as a long by adding anL
45762893920L
will work.Haskell:
initial solution setup does not provide function signature type
Loading more items...