anku580 / Java-Algorithms

This repository contains java algorithms and some interview questions.
11 stars 57 forks source link

Create Second_Minimum_In_Binary_Tree.java #23

Closed Amrit-Raj-Nits closed 3 years ago

Amrit-Raj-Nits commented 3 years ago

Given such a binary tree, the function can efficiently find the second minimum value in the tree. The code uses a queue and recursion techniques to accomplish the task in the most efficient manner.