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.
Modified. Top-answer and second-from-top don't pass anymore. Nevertheless they are not invalidated?!
Edit: now they are.
Note to author:
JS version still has under 500 solves so it's possible to edit the tests. ;-)
The tests for JavaScript are incomplete and are accepting incorrect submissions. For example, if we try to calculate
decompose (9927447)
, the second-from-top submission returns the incorrect answer[ 1, 2, 3, 5, 6, 7, 88, 4455, 9927446 ]
, the third returns the correct answer[ 1, 3, 17, 87, 4455, 9927446 ]
, while the top answer causes a stack overflow!I only discovered this after my incorrect algorithm was accepted, but the R version failed the unit tests.
A great Kata.
Challenging but quite interesting!
Thanks!
Great kata for reminding me of the knowledge about structure!
I love it !
Not very interesting...especially when you need to carefuly distuinguish z with 2...
Good kata. Try to figure out the pattern and get a formula.
But if there could be more specifications such as the detailed calculating process of finance(5), this kata will be better!
This comment is hidden because it contains spoiler information about the solution
true, false removed
stdio.h,stdlib.h,string.h,stddef.h were already there
I keep sizeArray...
Thanks again!
Thanks, you really helped me a lot!
In C:
true
andfalse
are defined instdbool.h
, no need to redefine them.size_t
is defined instddef.h
andstdio.h
,stdlib.h
,string.h
,time.h
,uchar.h
,wchar.h
. Some of these headers should be included.sizeArray
sound like an array of sizes. It should bearraySize
.There's no such thing as
null
. The null pointer isNULL
defined instddef.h
and some other headers.This comment is hidden because it contains spoiler information about the solution