When I want to create my own test case or debug input I got the follwoing problem. I am a little confused about the format of the input. For example, if the function is def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:, can I used the input as [[1,2,1]]\2\2 ?
Exception has occurred: JSONDecodeError Extra data: line 1 column 10 (char 9) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 308, in start params.append(json.loads(codecs.getdecoder("unicode_escape")(val)[0])) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier json.decoder.JSONDecodeError: Extra data: line 1 column 10 (char 9) or
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Extension Output
Paste here the LeetCode extension log from output channel.
Guidance: Press Ctrl+Shift+U, and toggle the channel to Debug LeetCode.
🐛 Bug Report
When I want to create my own test case or debug input I got the follwoing problem. I am a little confused about the format of the input. For example, if the function is
def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
, can I used the input as[[1,2,1]]\2\2
?Exception has occurred: JSONDecodeError Extra data: line 1 column 10 (char 9) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 308, in start params.append(json.loads(codecs.getdecoder("unicode_escape")(val)[0])) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier json.decoder.JSONDecodeError: Extra data: line 1 column 10 (char 9)
orTo Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Extension Output
Paste here the LeetCode extension log from output channel.
Guidance: Press
Ctrl+Shift+U
, and toggle the channel toDebug LeetCode
.Your Environment