Ad
  • Custom User Avatar

    The return statement is reduntant here as R returns the last evaluated object of the function.

  • Custom User Avatar

    I have a similar solution. I created two tuples of alphabet. The string.ascii is a big help. Thanks.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hi mate, thanks for taking the time to give me some advice - I really appreciate it!

  • Custom User Avatar

    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)

    import string
    alphabet_lower = list(string.ascii_lowercase)
    alphabet_upper = list(string.ascii_uppercase)
    
  • Custom User Avatar
  • Custom User Avatar

    Thanks for the answer!

    Another +1 task in the list of unfinished - I do not like when this happens.

  • Custom User Avatar

    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. ;)

  • Custom User Avatar

    For some reason, the submit button in the task does not appear when passing tests successfully.

    Only for me?

  • Custom User Avatar

    Whoops just commented 3 times by accident XD

  • Custom User Avatar
  • Custom User Avatar

    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 :)

  • Custom User Avatar

    @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...)

  • Custom User Avatar

    hi again,

    • 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.

    cheers

  • Custom User Avatar

    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

    Thank you for the feedback! :)

  • Loading more items...