how can we find the height of specified String in the binary search tree in java | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

how can we find the height of specified String in the binary search tree in java

I am wondering if a method like this Public int height(String name) { } How do we implement this method to get the specified height of this input parameter?

28th Mar 2019, 1:23 PM
Jimmy Chen
Jimmy Chen  - avatar
2 Réponses
+ 19
If you want a length of given string than simply use length() method of string class.
28th Mar 2019, 8:18 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
0
i need to find the current height of this string value in the Binary tree
28th Mar 2019, 8:30 PM
Jimmy Chen
Jimmy Chen  - avatar