how can we find the height of specified String in the binary search tree in java | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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