python_leetcode_runner
python_leetcode_runner copied to clipboard
Add a timeout variable
In case of infinite loops, the test gets stuck forever and you don't get to see the actual outputs of failed test cases.
Solution: Set a default timeout of 1 second, and allow people to add a global timeout = ... in seconds to their solution file, to override the default.