Saikat2407 / DSA_Hacktoberfest2023

This Repo will Accept all the quality Hacktoberfest 2023 Contribution ⚡️✅🎉
MIT License
142 stars 1.01k forks source link

leetcode problem 129. Sum Root to Leaf Numbers. #329

Open vermaaarti opened 11 months ago

vermaaarti commented 11 months ago

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.

Where: given the root of a binary tree containing digits from 0 to 9 only.

Each root-to-leaf path in the tree represents a number.

For example, the root-to-leaf path 1 -> 2 -> 3 represents the number 123. Return the total sum of all root-to-leaf numbers. Test cases are generated so that the answer will fit in a 32-bit integer.

nikunj441 commented 11 months ago

Hi @Saikat2407 please assign this issue to me as I am 4* star on codechef and specialist on codeforces. I have a great command in data structures and algorithms solved more than 500 leetcode problems. will surely provide you the all the approaches to solve the problem with best explanation ever.