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 comparison function does not account for integer over/under flow ;-) that's the point of these fixed tests
This comment is hidden because it contains spoiler information about the solution
I think you don't need if(dec[i] > 0)
They're not, the description was awkwardly worded. If the input cannot be arranged into a square, it is invalid and you have to return
"No"
This comment is hidden because it contains spoiler information about the solution
You should provide an example...
Here's one:
Same for
[1, 1]
Some python tests are bad, C tests too.
IMHO. Real challenge for those who want better understand how work lists on lower level (C lang).
If it's a problem with your algo, please mark as a
question
, not anissue
. EmperorMigx is correct, you have to allocate memory and mind your type.Description nothing says about 'sabbatical' in capital letters and if input string has only one 'a' it should be counted once instead of triple 'a' from 'sabbatical'.
I assumed input string s as 'sabbatical'. Thx.
You're not doing that. Read the description again.
Hi, there's no
issue
here. You're adding up all5
letters in the input 'cCdvi' wherecCdvi > 5 + 10 + 9 = 24
, meanwhile 'd' and 'v' are not in the word 'sabbatical', so they should not be counted.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...