Java: Get Size of Binary Search Tree Recursively

preview_player
Показать описание
Learn to write a getSize (count nodes) of a binary search tree in Java recursively.
Рекомендации по теме
Комментарии
Автор

Great videos on the binary search. Really clears things up.

lowercasecat
Автор

what is the complexity for this algorithm?

yashgadodia
Автор

Is there any problem using any pre/post/in order traveling and at the point of printing the node add that node to the array at the end size of array is size of tree please suggest if I am doing any wrong here

sarvodaykumar