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.
too easy for 6 kyu
Too easy for 6kyu. There was already a kata that did MUCH more difficult encryption at 7 or 8 kyu.
Needs fixed checks for edge cases like ints of "size" 2. My first solution was wrong for such ints but was able to pass the tests!
If I'm understanding you correctly, you made the same mistake that I did. You don't throw when you run out of lives, you throw when someone tries to guess AFTER lives have run out! (if that is so, consider removing your issue like I did mine...)
Description is plain wrong! You should say "find average and TRUNCATE it to int". If one does round, he'll get result off by 1 in some random tests (unless he's lucky!).
Don't forget the template type, ie
std::vector<int>
! ... unfortunately I can't change it myself.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The weirdest thing ever. My C++ code runs correctly on my machine but here it fails on the 7th case for no apparent reason. I'm 99.9% sure that it's not my fault...
The worst categorized kata. NOT 8 kyu by a long mile. And it's not about using the language, it's about mental/math trickery. Come on!
This comment is hidden because it contains spoiler information about the solution
In C++ the kata errors out if the user does not include header
cmath
. Someone who tries to solve this without eg round() should not have to include<cmath>
just to avoid this error.The C++ code stub still uses int, not unsigned long. This would seriously confuse inexperienced users, making this a much more difficult kata (not 8kyu).
This comment is hidden because it contains spoiler information about the solution
Something is wrong here. I match the number using regex_search()_ and pass match_not_null to that. This works on my PC but fails here. Something to do with codewars itself?
Loading more items...