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.
This comment is hidden because it contains spoiler information about the solution
The point of the kata is to find all noncontiguous numbers that sum within a range. Your answer includes numbers that are next to each other in the provided array/list.
EG: [-3, -1, 1, 4, 6]; -3, -1, 4, and 6 are next to each other.
I felt there was since a comment is less likely to be seen and OP hasn't fixed the issue that's been talked about for months. Figured boosting the issue would help. Certainly got a quick response but not the one I was hoping for. ¯\(ツ)/¯
Hoping this will bump the issue but this isn't currently passable in Python as it times out even when executing no code. Please fix!
Seeing as many others have passed this I think the fault is mine but I can't figure out what I'm doing wrong here.
With the parameters
WEAREDISCOVEREDFLEEATONCE, 8
I'm gettingWDEEFARLREEEVEEDOACICTNSO
which looks like this:But it says the answer is
WADCEFACTLROIREESVEEOENED
. It seems I'm doing what the task is asking, where am I going wrong?Went ahead and changed it.
As others pointed out, the description isn't great and even contradicts what is going on.
To be clear, the input for encryption will only be lowercase letters. But it's output and the input for decryption may not be. This does NOT wrap the alphabet as one may assume; other characters are possible.
Not enough tests and not random enough.
No but you're expected to know that incrementing an integer and then immediately decrementing that same integer (and vice versa) means you did nothing with it and is therefor inefficient. The output of '+-' and '-+' would be:
That would be a useless thing to do.
Getting this error:
ModuleNotFoundError: No module named 'codewars_test'
Seems the backend needs to be updated, from my understanding?
For those struggling to figure out what the kata author wants you to do I suggest @FArekkusu's comment below. I spent way too much time debugging but after that comment it worked in 30 seconds.
This comment is hidden because it contains spoiler information about the solution
Thank you!
Getting this error while submitting in Python:
Fixed tests pass. For whatever reason, whatever 'choose' is in random tests no longer works.
I don't believe this will work for all valid inputs eg:
['1','2','3','13','23','33','43','53','63','69']
This solution: 10
Correct answer: 7
Python translated!
Loading more items...