I am not getting how to implement this linked list from scratch…
How to implement it?
how the input will be given?
hi @Rakshit-Singh-1744969838949457,
Input is simply like normal input just take in form of string and where there is null at that position child is not present and use recursion to build the tree.
also u can refer https://www.geeksforgeeks.org/flatten-a-linked-list-with-next-and-child-pointers/ for pictorial representation
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.