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.
First rule of Regular Expressions - if have more simple use string method, then use more simple method than regular expressions =^)
Even though it's asking to rewrite the code, this is easier to understand, uses fewer lines of code and is simpler. In my opinion, this is a perfect solution since it teaches you what is most efficient instead of just doing what the problem asks.
the task was not to rewrite the function but to fix it
yes, this kata only asked to fix the bug in the code. not rewrite the entire code.
this is literally not the purpose of this ex I guess
mozg
in python
def partition(list, classifier_method):
please change variable 'list' to other name, because name 'list' is standard type in python
The
<int>
was probably eaten by markdown formatting@clcraig Thanks for the fix, approved :D
@donaldsebleung, submitted a fix so the solution setup will compile out of the gate. Also updated the description for several languages, both current and future translations.
https://www.codewars.com/kumite/579f17e3bb9944163b000e38?sel=5b5f755f67557e8592000059
fix your indentation man
It seems to be nullptr as list.
Try to check this
If (!list) return "nullptr";
Don't forget the template type, ie
std::vector<int>
! ... unfortunately I can't change it myself.I passed this on C++, but it was hard to debug.
I just thought that kata can be improved.
Anyway thanks for feedback.
Loading more items...