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.
I swear I tried this EXACT same code and it didn't work...
I used strconv, but it kept giving me two outputs. How does this solution get rid of the unneeded value and leave you with only the integer value?
The question is asking you to return the sum of ALL numbers in the RANGE of
a
andb
.For example, ifa = 1
andb = 5
, then return 1+2+3+4+5.There seems to be something strange going on with this one.
When the tests are ran with the basic inputs, they pass, however during the full attempt, I fail almost all them with messages like this:
Testing for a=-573 & b=308 Expected: -116865, instead got: -265
Now, the last time I checked, when you add -573 and 308, your sum is -265, which my script is returning, however the test seems to expect some arbitrary number - in this case below -100000?!
Someone please help me out...