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.
Oh! finally understood what is wrong with the logic. Thank you so much!
Add this sample test:
Test.assert_equals(sorted(two_sum([2,2,2,2], 4)), [0,1])
and see what your function returns.This comment is hidden because it contains spoiler information about the solution
Using the backticks, the # aren't needed, don't forget marking your post as having spoiler content.
This comment is hidden because it contains spoiler information about the solution
Use markdown formatting
I'm not able to do it, codewars automatically resets the indent of the text in markdown. Is there any other way?
Please format your code, otherwise this is unreadable.
This comment is hidden because it contains spoiler information about the solution