Skip to main content
DevHives

Turn a Binary Tree Into Text and Back

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[7,-3,12,null,null,40,-15]
Expected:
[7,-3,12,null,null,40,-15]
Case 2
Input:
[]
Expected:
[]
Case 3
Input:
[5,5,null,5,null,5]
Expected:
[5,5,null,5,null,5]
Ready

Run checks your code against the 3 examples. Submit checks it against all 113 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.