0% completed
Python Solution with only 1 loop
Pete Stenger
Sep 19, 2024
0
18
0
Sep 19, 2024
Can this be solved using recursion?
lejafilip
Aug 21, 2024
0
12
0
Aug 21, 2024
Solution with one while loop using JAVA
viniciuslopeslps
Aug 20, 2024
0
6
0
Sep 6, 2024
design guru code compiler is terrible
Satya Pandya
Aug 9, 2023
1
47
0
Aug 21, 2024
I understand the space is O(n), with the use of the queue and list were returnin...
Salah Osman
Jan 26, 2023
0
20
1
Jan 26, 2023
Nice solution but I couldn't see the need for currentLevel, surely you can just ...
Peter
Sep 25, 2022
0
36
0
Sep 25, 2022
The problem specification doesn't clarify that this is a *complete* tree... whic...
Pete Stenger
Aug 19, 2022
0
26
2
Aug 22, 2022
For the python solution, is the time complexity mainly taken from the inner for ...
Richard Yuan
Mar 27, 2022
0
11
3
Jan 26, 2023
For JS, you don't need collections/deque. You can shift/push/etc on a regular ar...
Ray
Jan 20, 2022
5
21
0
Aug 19, 2024
On this page