how can we find the height of specified String in the binary search tree in java | Sololearn: Learn to code for FREE!
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 Antworten
+ 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