Ad
  • Custom User Avatar
  • Custom User Avatar
    • The sign is optional
    • The symbols before/after brackets are optional
    • The last group in case of one-before-last digit being odd is wrong

    These were easy to spot. Maybe there're more issues with it.

  • Custom User Avatar

    391 Python solutions

    The tests should be correct. Looking at how complicated yout solution is, I'm sure there's a mistake in it. If you want somebody to help you, post your regex enclosed in backticks (``) so that it would be formatted correctly.

  • Custom User Avatar

    Because you're mutating the input. Don't do it.