Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug input format error #30

Open
Xiaoshu-Zhao opened this issue Aug 13, 2023 · 0 comments
Open

debug input format error #30

Xiaoshu-Zhao opened this issue Aug 13, 2023 · 0 comments

Comments

@Xiaoshu-Zhao
Copy link

🐛 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) or
image

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.

Your Environment

  • os:
  • extension settings:
  • nodejs version:
  • vscode version:
  • extension version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant