By the way, to save yourself from needing to write the whole alphabet out twice, you can just do the following (144 characters less than your solution)
I'm going to unpublish like you recommended above because it is quite similar to those kata (I don't know how I didn't find them when I was looking to see if this idea had already been done ;)).
Just wanted to say thanks for taking the time to comment it has been very helpful :)
@seventwonine: well, looks like this one is too much similar to those two. You should unpublish it, so (edit: well, there is really tiny difference, but...)
errr, 729 tests where too much, but 2x10 random tests are too few, now... x) => use 50 of each kind
import/no import: you can set the default version in the edit panel to 3.6
you're not forced to implement the tests to forbid inefficient solutions (it's not necessary. Depends actually on what you aim for your kata). My comment was more about the choice in upvoting or not some solutions.
Hi, I've tried to resolve some of the issues you've mentioned:
I've put in some fixed arrays for the test cases
I've put in an empty array test case
I've removed the default import (I did realise that 3.6 no longer needed it but for some reason my kata would only run in 3.4.3?)
I was just doing 729 tests because it's my username ;), I've removed most of them now
That's my friend, we were just trying to support each others kata sorry
For arrays in the millions my solution does not work as it is too inefficient (as you say, it chokes to death) so I will need to think of a better solution before I can publish this kata
The
return
statement is reduntant here as R returns the last evaluated object of the function.I have a similar solution. I created two tuples of alphabet. The string.ascii is a big help. Thanks.
This comment is hidden because it contains spoiler information about the solution
Hi mate, thanks for taking the time to give me some advice - I really appreciate it!
By the way, to save yourself from needing to write the whole alphabet out twice, you can just do the following (144 characters less than your solution)
2**0 is 1...
Thanks for the answer!
Another +1 task in the list of unfinished - I do not like when this happens.
not an issue of the kata itself. This has been happening from time to time for the last few weeks. Copy your code, reload the page and submit again.oh wait... x)
It's a draft. You cannot complete it. You shouldn't even have get there, normally. ;)
For some reason, the submit button in the task does not appear when passing tests successfully.
Only for me?
Whoops just commented 3 times by accident XD
.
Hi,
I'm going to unpublish like you recommended above because it is quite similar to those kata (I don't know how I didn't find them when I was looking to see if this idea had already been done ;)).
Just wanted to say thanks for taking the time to comment it has been very helpful :)
@seventwonine: well, looks like this one is too much similar to those two. You should unpublish it, so (edit: well, there is really tiny difference, but...)
hi again,
cheers
Hi, I've tried to resolve some of the issues you've mentioned:
Thank you for the feedback! :)
Loading more items...