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.
C++ translation (author gone)
approved
gotcha
done
fixes merge conflict
you should really start using a macro to compute array lengths, when they are determined by an initializer list (e.g.
int array[] = {1, 2, 3};
).There is a mistake that demonstrates the dangers of hardcoding: you have two arrays of tests in the fixed and sample tests, one is of length
4
and the other of length3
; but you copied over the sample tests' loop code to the fixed tests:this would never happen if you instead let the compiler do the work for you:
approved
edit: cross-post
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
upgrade to PHP 8.0
code
andin
should beconst
do not use
const char *str
in C++, useconst std::string &str
the input should be
const std::string &str
, notconst char *
void *weights
instead should befloat[n][n]
please keep things simple for the end user:
const
removed, and freed by the testsLoading more items...