Back to Browse

Populating Next Right Pointers in Each Node_Part_2(Constant Memory Solution)

3.9K views
May 14, 2020
15:04

Write a function to connect all the adjacent nodes at the same level in a binary tree. This is a solution that takes constant time. We discussed another solution in part-1 of this problem discussed in the following video: https://www.youtube.com/watch?v=0nNqonV_z5Q This is a more general solution to the specific problem in leetcode.com at the following link: https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ ---------------------------------------- Join our 30-days online course to prepare for coding interviews of companies like Google, Amazon, Facebook, Microsoft, etc. Course On Coding: http://www.ritambhara.in/big-o/ Course On System Design: http://www.ritambhara.in/system-design-for-coding-interview/ We have our office in Greater Noida (India) where we run courses for students to prepare them for placements in Top IT companies. For Placement Preparation and Industrial Training call us. Call: +91-8377803450 Email: [email protected] Call us to conduct a workshop in your college campus. Buy our books and prepare for coding interviews on your own. https://www.amazon.in/Kamal-Rawat/e/B0765VFLKD/ref=dp_byline_cont_book_2 For detailed discussions on Interview Questions visit: http://www.ritambhara.in/

Download

0 formats

No download links available.

Populating Next Right Pointers in Each Node_Part_2(Constant Memory Solution) | NatokHD