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.
RISC-V Translation
Updated
toconst int * const *nums
But it seems you meant that the user could change the order of raws!
This declaration just carries informative character because nothing prevents the user to apply casting and forge the matrix.
This type for matrix is used to adapt to the kata task and probably is not the best type.
As under the hood all the declared matrices are just consecutives of one array.
Otherwise, would prefer
const int nums[], size_t m, size_t k
and usenums[i*k+j]
or something simillar...و الله do not rember the reason for
malloc.h
as it was six years ago...And there is no blind following...
As it seems reasonable to add empty strings (at least for one argument) because it is a 4kyu kata!
But anyway i do think there should be a consensus on throwing away empty strings in all languages or editing the description to include them (not just my or your opinion)!
Also in
C++
,Python
and originalJS
(probably some others)So we have to two options here:
And because this kata is 4kyu, then the second solution seems more reasonable!
Definitely, there was some reason for including
malloc.h
instead ofstdlib.h
and probably you should have to wait for another six years before noting that...
Despite the reason
Updated
to includestdlib.h
instead ofmalloc.h
Added
the case with empty string to Sample Test to inform users that there can be such cases to be compliant with the original version!Edit: though may be i should not do it because another languages do not inform of such cases!
So i will remove it from Sample Test
RISC-V Translation
The correct issue: does not report actual and expected results in sample tests!
Resolved
RISC-V Translation
Oh, The ALMighty!
It ain't THAT fast!
RISC-V Translation
Thanks!
RISC-V Translation
Thanks for your suggestion and becoming the reason i've learnt about RISC-V!
@Madjosz
Here added RISCV Implementation
The issue was fixed (half a year ago) updating the kernel that enabled vector extension. Sorry for being late half a year))
Old Legacy Standard Translation))
Thanks!
Loading more items...