leetcode 536 Construct Binary Tree from String

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Make playback speed to 1.25 and use earphones.

amijugjug
Автор

What is the time and space complexity?
Time is O(n) and space complexity is also O(n): stack space (in case of skewed tree). Am I correct?

ritikagupta
Автор

Awesome, your way of explaining is really what learners newd.

AdityaSingh-qlke
Автор

How u reach to root.right block.. as upper if condition true and it ovveride root.left.
Please clear my doubt

snehabaser
Автор

Nice Solution Dude . Easy to understand . It helped .

samratganguly
Автор

are sir sound system thik kro please adhe subs aisi bdjynge

amannegi
Автор

I think fourth if loop is not required, second if loop will take care of it, correct me if i am wrong.

lucky_raiser
Автор

this code misses a critical case which is "()" which represents empty subtree for a given root

shrshawn
join shbcf.ru