Ad
  • Custom User Avatar

    I also added a handful of quotes. Not sure I've got enough though :p

  • Custom User Avatar

    thx fixed

  • Custom User Avatar

    spelling mistake in tests:

    'partipicative' => 'participative'

  • Custom User Avatar

    are the random tests even generating proper molecules?. If I print the first 10 chars I get things like "H)4305C)59".

  • Custom User Avatar

    I found the bug in reference solution. I retested with each of the current submissions. Thanks for pointing this out.

  • Custom User Avatar
  • Custom User Avatar

    Both mine and Fbasham's solutions sometimes fail a random test. For example, both of our solutions fail the following test (with equal output):

    Block:
    [[0,0,3],[1,0,1],[0,1,0]]
    
    Observations:
    [["3B",2],["2C",2],["1B",2],["2C",2],["2A",2],["3C",0],["1C",1],["2A",3],["1C",3],["2A",0],["2B",2],["2A",3],["3C",0],["3C",2],["2A",3],["2B",2],["3A",3],["3B",3],["1A",2],["2C",2],["3A",2],["3B",1],["2A",3],["3B",2],["3A",1],["1C",3]]
    
    : expected [ '1A', '2B' ] to deeply equal [ '1A', '2B', '3A' ]
    

    Either our solutions or the author's solution is buggy.

  • Custom User Avatar

    Thank you. Looking at your solution, I noticed I forgot to mention results need to be ordered. Description updated.

  • Custom User Avatar

    thanks, fixed

  • Custom User Avatar

    Very nice! Liked this one a lot.

  • Custom User Avatar
    Traceback (most recent call last):
      File "/workspace/default/tests.py", line 2, in <module>
        from solution import hello
      File "/workspace/default/solution.py", line 1, in <module>
        from preloaded import *
      File "/workspace/default/preloaded.py", line 1
        def hello(name):
                        ^
    IndentationError: expected an indented block after function definition on line 1
    
    • it looks like you've put the starter code in preloaded (it shouldn't be here as there's nothing this kata needs to be preloaded)
    • the kata should be written in English
    • this isn't a novel idea for a kata (it's been done before and is a duplicate)
  • Custom User Avatar

    I don't know... The best solution, of course... But I think it would be nice to try at least to improve your skills in creating algorithms. If there a module it's good. But sometimes there isnt

  • Custom User Avatar

    reminds me of compiler code :p

  • Custom User Avatar

    hey, could u please write a short feedback on what should be modified/fixed/removed

  • Custom User Avatar

    The expected sorting isn't correct:

    [[3, 4, 5], [5, 12, 13], [11, 60, 61], [16, 63, 65], [30, 40, 50], [40, 75, 85], [60, 63, 87], [60, 80, 100], [75, 100, 125]] should equal [[3, 4, 5], [5, 12, 13], [11, 60, 61], [60, 63, 87], [16, 63, 65], [60, 80, 100], [40, 75, 85], [75, 100, 125], [30, 40, 50]]

  • Loading more items...