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.
Pointless
Another idiotic kata...
Too easy even for 8 kyu...
Фуууууууу читак ((
This is the stupidest kata i have ever seen
Best solution...
Are you crazy? -_-
Best practices ever
C = C > 9
probably it's something like carry flag. There are column addition like as4 +
4
8`
you get just 8 and addition is over, but if you add
5 +
5
10
You add
5 + 5
and get10
, but you can write only one digit, the0
. You have to write1
too.But cycle is over because
A
andB
arrays already empty. And result will be0
.In this case you need check if you have reminder from adding.
C = C > 9
just check if number more 9. I.eC = 5 + 5
,C = 10
, and thenC = 10 > 9
,C = true
.In this case a script have to run more one cycle.
And
C
now isBoolean
,true
orfalse
thenC = C + (~~A.pop() + ~~B.pop());
considering asC = 1 + (number + number)
orC = 0 + (number + number)
I.e
true + 1 == 2
ortrue + 0 == 1
Oh it's little difficult even for me. But I hope you can understand basic idea.
~~ it's using for convert any value to integer. For example:
~~undefined = 0
,~~1.1 = 1
,~~"test" = 0
and even~~null = 0
etc.It's good hack if you don't want write various conditions such as
if (a != null || a != undefined)
you just writec = ~~a
and if variable is incorrect,it's just return 0 in any case without any exception.
You forgot remove comment xD
I think that kata a bit of strong for 6 kuy, it's at least 5 kuy
It's too easy for 4 kyu, isn't?
It's so hard
KEK!
Loading more items...