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.
Add extra task :
Can you find answer in O(1) time/memory complexity?
Using sum of Sum of an arithmetic series(progreesion)?
There should be a fixed test -->
1
across all languages as some solutions will have trailing lines as output (1\n
)C Translation (author inactive).
As stated in prior comment, the description suggests that only natural numbers will be passed in as arguments. Test cases show otherwise, which is confusing. It would be best to establish input expectations in the description.
Description should be language-agnostic
Invalid inputs are not being tested in the main tests.
That's not tested and some wrong solutions pass by chance. And in some other languages, correct solutions won't pass.
Returning different data types is bad practice, consider returning
Null
or something similar for invalid valuesThis comment is hidden because it contains spoiler information about the solution
The haskell fixture doesn't test if
m
is a multiple ofn
.According to the description, it should be excluded, my solution (which does not exlude
m
) passed.This comment is hidden because it contains spoiler information about the solution
C# description says up to rather than including. Very misleading
This comment is hidden because it contains spoiler information about the solution
As has already been mentioned, the written instructions should be updated so it's clearer as to what is expected or what kind of tests it will be run against.
It is not stated that the variables may be negative, or n may be > m, and need to be checked for validity (E.g. n,m > 0 && n < m).
The description is misleading: positivity is not an assumption, it must me validated for by your code.
Loading more items...