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.
Const: Maybe to discover some wrong parametrization (a class declared with wrong operator overload, modified the input in that overload, etc) - but, yes, in this simple case, not really applies.
Ref: if you want to avoid a complex object to be copied (an object that overloads * the operator) at every call of square.
you don't need to read the number with cin, you receive it as parameter.
if you would put "const" for "num" parameter, as you should do it because it is an input parameter, you would receive compile error.
you don't need to read the number with cin, you receive it as parameter.
if you would put "const" for "num" parameter, as you should do it because it is an input parameter, you would receive compile error.
P.S. Why a solution like this has 2 "Best Practices" votes?!
For C++ another observation:
From description: "All letters will be lowercase and all inputs will be valid."
For C++: Since this is not a "bug-fixing" kata and it is 7 kyu, I think you should give correct function declaration in start, because users
not familiar with C++ will search probably for mistakes in their code. (using of the std::vector)
Thanks, I got my points after 3-4 hours after solving it, I was used with the fact that the points are refreshing instantly after solving the kata.
Also, no change in rankings.
Hello!
I solved in the last 1 hour 2 kata, but my honor remained the same (1890) after the submit? The solution was accepted, and it is listed on my profile at "solutions". Why? It is a server problem?
Thanks
Ok.
Why? It is not a "must to have" to have test cases helping the user to understand better the problem?
If not, sorry, but I think it should be.
Please add sample tests for the C++ version.
Please add sample tests for the C++ version.
It is not hard to add a couple of tests.
Hello.
Why I have 0pt for White code challenge completed and White code snippet translation approved since my count > 0?
https://www.codewars.com/users/lszcs/site-events
Thanks.
In C++: I got "-isystem /runner/frameworks/cpp/ error: expected ';' after struct}" even if I run the
"int sum_of_squares(int n) {
// put your code here...
return 0;
}"
initial code for sample tests.
Please check it.
Loading more items...