Master Data Structures & Algorithms For FREE at AlgoMap.io!
@servantofthelord81474 ай бұрын
Wow. Such a beautiful solution. Excellent work as always Greg!
@GregHogg4 ай бұрын
Thank you!
@SivaTechVerse20 күн бұрын
Greg is great as usual!
@DTsertsvadze5 ай бұрын
Hey Greg you rock dude! Big fan of your approach.. btw what app are you using for drawing?
@GregHogg4 ай бұрын
Sorry for the slow reply! I use miro :)
@SivaTechVerse20 күн бұрын
love your videos
@anmolacharya3093 ай бұрын
Great Animation
@raymondchan39253 ай бұрын
Question: Thanks for the instruction!! love it but one question though. If you call same(root, root) at he beginning, wouldn't you ends up with two identical call stacks and ends up with Time: O(2n) ? Why not do same(root.left, root.right) from the start? I understand you will have to do something to check the initial root and the first two children but the trade off is you have 50% improvement in time, right?
@viswanathvuppala45265 ай бұрын
How about doing a level order traversal and check if every level is a Palindrome.
@GregHogg4 ай бұрын
That's a cool solution
@viswanathvuppala45264 ай бұрын
@@GregHogg Hey, thanks!
@etaidiary3 ай бұрын
@@viswanathvuppala4526 tried that, they have a case that blocks that
@KRISHNASINGH-i2v5 ай бұрын
Hey greg big fan From india Can you please put more binary tree questions already completed what you have posted on binary tree