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.
Hi @ggorlen
No, everything is ok.
You are received the error because you modified the input.
If you need to modify the input copy it.
Hello.
I created Typescript translation: https://www.codewars.com/kumite/5ad66e642f39818b1a0000a4?sel=5ad66e642f39818b1a0000a4
Please review.
@MrZizoScream
Sure, My skype: fsb4000
Hi MrZizoScream!
Random tests still uses int (but it's positive number, yes you are right)
If you mean:
srand ((unsigned int)time(NULL));
I use explicit cast to unsigned int because my compiler gives me error:
test/solution.test.c:99:9: error: conversion to 'unsigned int' from 'time_t {aka long long int}'
may alter its value [-Werror=conversion]
srand (time(NULL));
Thank you again, you are a very positive person!
Yes, it showed me too.
I translated again: https://www.codewars.com/kumite/5ad2e65709e38c5f3d00007c
added Powershell and Typescript translations:
https://www.codewars.com/kumite/5ad2e1866c6b16d48900007
https://www.codewars.com/kumite/5ad2e65709e38c5f3d00007
Please review.
the issue was resolved. I'm stupid :(
Thanks @Blind4Basics
I think, I found a vulnerability again :(
https://github.com/Codewars/codewars-runner-cli/issues/589
Don't approve for now, maybe they helps me improve the translation...
Thank you!
Added Powershell translation:
https://www.codewars.com/kumite/5ad15fa4b70b73d95d0000a5
This is my first powershell code on codewars :)
This comment is hidden because it contains spoiler information about the solution
Thank you for approving my C translation!
I also made a Typescript translation: https://www.codewars.com/kumite/5ad12965b70b73cc3a000009
I made C translation: https://www.codewars.com/kumite/5ad1175961c493f8d60000d5
Please check.
Ok.
This comment is hidden because it contains spoiler information about the solution
Incorrect tests for c++
#Constraints:
1 ≤ N ≤ 10^19
But if I add for example,
if (n < 1)
{
return -1;
}
it fails the random tests.
Update the description or delete test where n = 0
Loading more items...