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.
Added. Thank you very much.
Fixed now. Thank you very much.
Should it be mentioned that the function is pure or am I missing something?
Nice Kata! Suggestion to add tag PERFOMANCE
Sure, I'll update it to Python once the improved random tests in C++ are done by the author.
Perhaps you should generate more variation in random tests. I would try to include patterns from each of the fixed test batches.
Nope, I will add it if needed.
Did you prohibit some modules in Python?
Thank you for translation.
Python translation
performance
tag could be usedThank you very much!!!
Dude!!!
Very nice kata.. Had to take a paper and a pen on this one :-)
In addition, the lambda used in this kata does not use
[=]
and does not capturen
.I'm sorry I didn't understand your question. My guess is that you may have made some mistakes in your understanding of the way the online judging is conducted:
In fact, multiple sets of judging on Codewars are more similar to Leetcode, not passing arguments through I/O, but directly by calling the submitted function (or TypeTrait, etc.), so that Non-local initialization is only performed before judging. You might be able to move the definition of
traw
to the body of thecalc
function?c++, the [=] labda you are using to check results is holding on to the "result" (quptation marks because its capturing the starting n too lmao) of every test and adding it to the user's answer. Below is my function.
Also why are you even using lambda when it has no purpose whatsoever in the kata?
Loading more items...