You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🟢 Title : Kth largest sum in binary tree
🟢 Programming language : c++
🟢 Objective : To return the sum of the level which is kth largest, if it exists.
🟢 Summary : This problem asks you to return the largest sum on the kth number in a binary tree. If it does not exists, return -1 else return the sum.
In this approach I have used breadth first search technique to find the level wise sum. once the sum of a level is calculated, I have stored it in a vector. and upon sorting the vector we can get the kth largest value, if it ec=xists at all. if not then it returns -1.
Please merge it under the tags of hacktoberfest2024 and hactoberfest-accepted.
✅ Details to Include When Taking the Issue:
Name : Simran
Happy Contributing! 🚀
Wishing you all the best on your open source journey😍.
Enjoy! 😎
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening this issue! First please star the repository and follow me in github. We appreciate your feedback and will look into it as soon as possible.
Hello @simran0963! Your issue #125 has been successfully closed. ✅ Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀
🟢 Title : Kth largest sum in binary tree
🟢 Programming language : c++
🟢 Objective : To return the sum of the level which is kth largest, if it exists.
🟢 Summary : This problem asks you to return the largest sum on the kth number in a binary tree. If it does not exists, return -1 else return the sum.
In this approach I have used breadth first search technique to find the level wise sum. once the sum of a level is calculated, I have stored it in a vector. and upon sorting the vector we can get the kth largest value, if it ec=xists at all. if not then it returns -1.
Please merge it under the tags of hacktoberfest2024 and hactoberfest-accepted.
✅ Details to Include When Taking the Issue:
Name : Simran
Happy Contributing! 🚀
Wishing you all the best on your open source journey😍.
Enjoy! 😎
The text was updated successfully, but these errors were encountered: