CoderMJLee/BinaryTrees sits at 318 stars on GitHub, written primarily in JavaScript. Some operations for binary tree
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
public final class BinaryTrees {
// 打印一棵二叉树
public static void print(BinaryTreeInfo tree);
public static void print(BinaryTreeInfo tree, PrintStyle style);
// 打印一棵二叉树(打印完自动换行)
public static void println(BinaryTreeInfo tree);
public static void println(BinaryTreeInfo tree, PrintStyle style);
// 获得一棵二叉树的打印字符串
public static String printString(BinaryTreeInfo tree);
public static String printString(BinaryTreeInfo tree, PrintStyle style);
// 可选的打印样式
public enum PrintStyle {
LEVEL_ORDER,
INORDER
}
}
示例(Example)
先实现BinaryTreeInfo的相关操作(Implements BinaryTreeInfo)
根节点是谁?(Who is the root node?)
如何查找左节点?(How to get the left child?)
如何查找右节点?(How to get the right child?)
如何打印单个节点?(How to print a node?)
/**
* BinarySearchTree是你自己编写的二叉树类
* BinarySearchTree is a binary tree class that is created by yourself.
*/
public class BinarySearchTree<E> implements BinaryTreeInfo {
/**这里省略了大量代码,只贴出了脉络代码**/
/** only show some main code **/
private Node<E> root;
private static class Node<E> {
E element;
Node<E> left;
Node<E> right;
}
/********** BinaryTreeInfo **********/
@Override
public Object root() {
// 根节点是谁?
// who is the root node?
return root;
}
@Override
public Object left(Object node) {
// 如何查找左节点?
// how to get the left child of the node?
return ((Node)node).left;
}
@Override
public Object right(Object node) {
// 如何查找右节点?
// how to get the right child of the node?
return ((Node)node).right;
}
@Override
public Object string(Object node) {
// 如何打印单个节点?
// how to print the node?
return ((Node)node).element;
}
/********** BinaryTreeInfo **********/
}
Does CoderMJLee/BinaryTrees have a project website?
No homepage URL was recorded for CoderMJLee/BinaryTrees in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on CoderMJLee/BinaryTrees?
The most recent commit recorded on CoderMJLee/BinaryTrees was 1.0 years ago, based on the GitHub push timestamp. The repository has 68 forks — one of the better signals of community interest.
How many stars does CoderMJLee/BinaryTrees have?
CoderMJLee/BinaryTrees has 318 GitHub stars — refresh the page for the live number, or check github.com/CoderMJLee/BinaryTrees. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is CoderMJLee/BinaryTrees written in?
CoderMJLee/BinaryTrees is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What license does CoderMJLee/BinaryTrees use?
CoderMJLee/BinaryTrees is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
What topics is CoderMJLee/BinaryTrees associated with?
GitHub's repository topics for CoderMJLee/BinaryTrees: "binary-search-tree", "binary-tree". TopGit's editorial category is open-source.
Where do I read more about CoderMJLee/BinaryTrees?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/CoderMJLee/BinaryTrees is the definitive source.
Read full README in the tab above.
Curious whether BinaryTrees is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about BinaryTrees.