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.
just 2 operators:
decrement --
and compare >
any spaces skipped
but look very nice :)
"I don't" :D
std::vector< std::vector< int > > combinations;
This can be a memory hog in larger projects. Thankfully we don't need to store these roads for future. :)
I like solutions like these, because they are the closest to how I did it, but they are better in some way or another. I created a whole vector of numbers that contain a given digit... Now I know there was no use for it :p
Yes, I was playing with this new (to me) website.
Yes.
I have never seen "while(runs --> 0)" before :o How does it work? Is it just a post incrementation combined with comparison?
Yes I know. But test should be able to catch that, right? I already commented this in the discussion. I also did rework my solution :)
This shouldn't work for huge numbers. Unfortunatelly there's no test written for that, but imagine 1000 digit number. There's a reason why is it passed as std::string.
I read it ;)
One can further improve this by not creating second if-statement. If you sum negatives and add 0 to them, it doesn't affect the sum. Thanks for teaching these temporary vectors :)
True. It just kinda happened. ;-)
"How to kill a fly with a cannon" :D