Ad
  • Custom User Avatar

    Most likely you're trying to iterate over an integer, like so:
    `for x, y in sequence:

    do stuff`

    To fix that, you'd write
    `for x, y in enumerate(sequence):

    do stuff`

  • Custom User Avatar

    I wrote this program in Python, problem of 'time out' in final submission, pass all tests though, any suggestion? thnaks

  • Custom User Avatar

    Enjoyable Kata, thanx

  • Custom User Avatar

    Hey, I wrote this Kata in Python, through with everything. Result is an appended list of anagram words, not a sorted one. However, I used the method 'sorted(word) and 'sorted(words[i])' to exluded the words that are not anagram. Hope it helps, thanks

  • Custom User Avatar

    Very interesting and enjoyable!
    Pass all tests, submits easily on 'attempt' button, thanks

  • Default User Avatar

    Thanks for the comment, I noticed that most of the test cases I had issues with, actually had the 'Expected' and the 'But was' values turned around. So rather than me thinking it wants the output "0:0:0" that was my actual output with one of the test cases and not "00:00:00".

  • Custom User Avatar

    I wrote this in Python and works perfect. When you reduce secs to mins then to hrs, they firm integers that computer displays single digit when less that 10. So it needs to be converted into string and concatenate '0' (note: it's not an integer). Hope it helps,

  • Custom User Avatar

    All tests pass, displays "00:00:00" format perfectly, thanks

  • Custom User Avatar

    All tests pass, still not accepted on final submission attempt, it shows error "Traceback:
    in
    in fixture
    in find_missing
    TypeError: 'int' object has no attribute 'getitem'

    Any idea what does that mean? thanks!

  • Default User Avatar

    Can I please ask that noone takes my solution to this serious? I'm just in rebellious mode and tried to create a really nincely botched solution :D

  • Custom User Avatar

    All tests pass. However got "Expected: 'null', instead got: ''null''" while trying to submit as final. I beleive it's something the syntax not matches with system. And I know this is for the test acase when the time calculated comes negative. Anybody has a clue? thanks,

  • Custom User Avatar

    If JS, rounding can be done by floor() method, In Python it's round() can be used, thanks

  • Custom User Avatar

    All tests pass. However got "Expected: 'null', instead got: ''null''" while trying to submit as final. I beleive it's something the syntax not matches with system. And I know this is for the test acase when the time calculated comes negative. Anybody has a clue? thanks,

  • Custom User Avatar

    I got the same as well in Python, this kata can not be executed within time frame, I guess. Neither the test cases are attarctive or meaningful, thanks

  • Custom User Avatar

    All tests pass, time limit execution fails for the reason "Time: 12303ms Passed: 0 Failed: 0".
    The 'Atom' editor shows "Running: python (cwd=undefined pid=733). Exited with code=0 in 0.217 seconds."

    Does anybody have the best timing for this kata?

    I did not find a way to cut down time at all !!!

  • Loading more items...