Back to course home
0% completed
Vote For New Content
Why am i getting this error while submitting my code ? Code works fine on my local Python run time
Adeel Qureshi
Dec 30, 2023
Traceback (most recent call last): File "/box/Parsers.py", line 69, in parse return json.loads(line) File "/usr/lib/python3.7/json/init.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)
0
0
Comments
Comments
A
Adeel Qureshi2 years ago
class Solution: def traverse(self, root): result = [] # TODO: Write your code here q = deque([]) q.appendleft(root) ltr = False while q: ltr = not ltr arr = deque([]) size = len(q) for _ in range(0,size): ...
A
Adeel Qureshi2 years ago
Above is the code that i'm trying to submit and i get back this error while submitting
On this page