Ad
  • Custom User Avatar

    Very nice kata. Thank you!

  • Custom User Avatar

    Thank you for the feedback. If you could point out what you consider edge cases i will add them to the fixed test battery
    I fixed the syntax warning

  • Custom User Avatar

    I assume you are using Python (please always state it first).

    The error is due to the fact that you try to print too much stuff to the screen. Some random tests are big, you are supposed to handle it (eg. print only if input is below a certain size) and this cannot be considered a kata issue.

  • Custom User Avatar

    I was getting the below error on attempts until I removed some print statements I was using to debug. Getting a warning from a test seems weird.
    The standard test cases don't cover many of the edge cases that are in the larger test cases which creates a situation in which you have to attempt to debug.
    I'm not sure what value is provided by random test cases large enough to create a max buffer size issue but it doesn't force the trainee to refacor code to be better but just eliminate print statements.

    /workspace/default/tests.py:26: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    units += f'({s[i] * (int(s[i-1]))})' if int(s[i-1]) is not 0 else ''

    Max Buffer Size Reached (1.5 MiB)