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.
Apparently, i misunderstood the question! sorry :o my bad :) thanks for your comment
The test is this:
Somehow you're printing the input after sorting it from largest to shortest it seems.
Kindly could you please explain why the solution is ("ixoyx3452zzzzzzzzzzzz") instead of ("zzzzzzzzzzzzwkppvixoyx")!!. I printed all the arrays that did not pass the tests inorder to understand why i passed the Sample tests but not the Attempt!!
It's not the test case. There are no errors in the tests.
Before posting issues look at the top of the page: 492 people passed the Swift kata. If there were errors somebody would already seen them before you:-)
same problem
Using Swift: Test Case is ["zzzzzzzzzzzz", "wkppv", "ixoyx", "3452", "it"], 3
Correct result should be : zzzzzzzzzzzzwkppvixoyx but the webiste testing says the answer is "ixoyx3452zzzzzzzzzzzz"
XCTAssertEqual failed: ("zzzzzzzzzzzzwkppvixoyx") is not equal to ("ixoyx3452zzzzzzzzzzzz") -
Plz help
Same problem
Aha nice one - good luck on your Swift journey!
I solved it.
Yes it's Swift. Thanks for writing this comment!
Hi and welcome to Codewars!
For future reference, please state which language you are working in - here, Swift it seems - so someone who knows that language can help you (I'm a Python noob so I can't look at the Swift tests).
In the mean time, please read this page on Troubleshooting - especially the part on printing the input which will allow you to see which test cases are causing you to fail:
https://docs.codewars.com/training/troubleshooting/#error-messages-and-printing-your-inputoutput
Maybe this will allow you to notice why your code is failing - large numbers, presence of 0, negative signs, etc??
I have passed all the tests cases but failed to attempt !