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.
it means you returned an object instead of a function. if a constructor returns a non-primitive, this is what
new
evaluates to; and functions are not primitivesconstructor: function Fnc(){ return Fnc; }: expected {} to equal [Function: fn] ; sorry but what does this mean?
OP solved it closing!
This comment is hidden because it contains spoiler information about the solution
Well I solved it with dynamic memory allocation using malloc, create the array with it and it might help
This comment is hidden because it contains spoiler information about the solution
Tnx for info but I have already solved it with dynamic memory allocation
C version of the kata requires you to return a dynamically allocated, two-element array (which sucks, and I will probably change it, but that's how it is now).
Do you return a pointer to a dynamically allocated buffer?
I submitted the solution in C. But it always showing an error:
Test Crashed
Caught unexpected signal: 6
Explain me ~~~
It's too complicated for the beginners you know but pretty smart
A good practice for beginners
I wanted to solved it with BigInt
It is quite clever one but don't you think it is little complex?
I solved it with Stack but your solution is good as well and it's pretty simple which is why I liked it and would say it is the best practices but I do not think it is quite clever one