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.
Trying this kata... seems interesting :-)
Why passing an 'int neurons' param, instead of taking the 'neurons_capacity.size()' in the Brain simulate function ?
Seems like a port from C to C++ ?
C++ solution done.
Very nice kata indeed, tested and learnt a lot of new stuff (variants and visitors, shared pointers, ...)
One question though: how are reference solution and tests generation implemented (seems that my solutions works in 0ms for all the fixed and random cases,...) while the whole takes 8secs to compile and run ?
BTW: I would appreciate that someone explain to me why (in my submitted solution) the Node_t struct needs all the constructors for the variant, while those are not necessary in gcc (see comment in code)?
Description says:
Output for input consisting entirely of whitespace will be an empty string (null in case of Java).
All other cases will throw an error.
Seems that a string consisting of three spaces in a row is expected to throw, not to return an empty string.
More: prototype returns a
double
, cannot see how it would return a string..;-)
Apologies @dfhwze... I read your msg and looked for the F...... button but.. not JUST under the
dfhwze (1kuy) 21 hours ago
Click on the eligible language, then on "view solution" below the user name of the initial post in this thread.
1 ^ | v . VIEW SOLUTION . Spoiler . Report
Actually: it is not under the "user name", it is under the "Click on the .."...
:-)
WTF, did my message get lost in translation or something?
I beleive the invalidated solutions are in the
Solutions
tab, and there will only be invalidated solutions if they passed the kata at one time, but then they fail later (e.g. via updated tests).However, the
View Solution
button hobovsky mentioned is at the bottom of any user post in theDiscourse
tab. You can find it between the upvote/downvote andSpoiler
buttons. For example, you should be able to see my Python solution if you clickView Solution
below this message (plus Python should be selected in the dropdown menu at the top of the page).Thanks a lot to you both... Learnt something (again...) :-)
And for those solutions in the given language, one can see the ones that did not pass the tests by clicking 'invalidated' in the left box, all right ?
@eurydice5717 if you are interested, jaschka is solving in Python, so you should be able to see their most recently trained solution by following hobovsky's post
It's complicated :)
Click on the eligible language, then on "view solution" below the user name of the initial post in this thread.
@depial: just for me to know... how could you read his/her code ??
@jaschka I think you might be reading the incorrect log. When a test fails, read the log above (not below) the failure notice, (print statements are logged before test verification).
When I ran your code, every test that failed expected
-1
and indeed there was anI
incident involving the pilot ID, which was shown in the appropriate log. Furthermore, I found the bug in your code which leads to this behavior and your code passes once it is fixed.Sorry but you'll have to verify the concerned tests input, kata was solved 60 times..
Have to flag the issue down..
Hi, you're the first to report that.. Please print and give the concerned entry string (:-( if random...)) ?
Loading more items...