binary-tree
How to search for a node in a binary tree and return it?
I\'m trying to search for a nod开发者_开发技巧e in a binary tree and return in case it\'s there, otherwise, return null. By the way, the node class has a method name() that return a string with it\'s[详细]
2023-03-04 04:29 分类:问答-
Unable to create a binary tree properly?
I am trying to build a binary tree from a string input piped to System.in with Java. Whenever a letter from a-z is encountered in the string I am making an internal node (with 2 children). Whenever a[详细]
2023-03-03 20:54 分类:问答 c++ problem inorder printing binary tree recursively
I have been practicing some old C++ problems to prepa开发者_如何学运维re for a few job interviews, and I am currently trying to recursively construct a binary tree from an array, and then print it ino[详细]
2023-03-03 15:29 分类:问答Understanding recursive functions
Based on the binary tree below, what would the output be of the function call mystery(root)? struct treenode {[详细]
2023-03-03 13:54 分类:问答Building binary tree from preorder bitstring
I am trying to do an assignment but I\'m having trouble with the first step. The link below is 开发者_运维知识库the assignment for context:[详细]
2023-03-03 05:06 分类:问答How to check if a binary tree is complete in Java
I am having a lot of trouble with this task. Using the Wikipedia definition for a complete binary tree:[详细]
2023-03-03 04:05 分类:问答List of strings (multiple lines) as command line input in Java
I am trying to do an assignment for school and I don\'t know how to deal with the input. I have provided a link below for context on the assignment:[详细]
2023-03-03 03:52 分类:问答balanced() binary tree
I need to write a method that determines whether a binary tree is balanced. So first I\'m going to have to determine the height of each side of the tree. But I\'m having trouble understanding how I am[详细]
2023-03-02 00:24 分类:问答Is there an implementation of a binary search tree annotated with sub-tree size
I have been researching the tree data structure described at this link (near the bottom): http://sigpipe.macromates.com/2009/08/13/maintaining-a-layout/[详细]
2023-03-01 17:13 分类:问答Using arrow -> and dot . operators together in C [duplicate]
This question already has answers here: What does "request for member '*******' in something not a structure or union" mean?[详细]
2023-03-01 15:12 分类:问答