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.
In the program print arguments, so you will know for which values your code does not work.
Great!
"A and B?" has the same issue with C++.
The tests were working "as written", as 117 coders had passed the kata without issue. You mentioned that
383
was the first test, but if that was the only one you were passing before you completed the kata it was because of your code. However, I did notice it was always the first test because tests weren't randomized. So I seededsrand
and now they are.Random tests do not work on C++. While I had yet to solve the challenge, the only test I got from it was Test: n = 383.