codermjlee / binarytrees Goto Github PK
View Code? Open in Web Editor NEWSome operations for binary tree
License: MIT License
Some operations for binary tree
License: MIT License
报错信息:Thread 1: EXC_BAD_ACCESS (code=1, address=0x2)
报错行:MJLevelOrderPrinter 372行
其中rowNodes包括4个元素,三个为MJLOPNode *类型,一个为NSNull类型
项目为single iOS项目
项目地址为:https://github.com/alreadyRight/MixT
MJ老师能帮忙查看下原因吗
基于BinaryTreePrinter
的代码,使用Typscript
、node-canvas
实现支持控制台输出 or 生成图片的二叉树打印,代码仓库在print-tree
不知是否可以发个pr合入 😀
有计划更新一个c++版本吗,c++的算法使用者也挺多的,或者能否使用oc版本支持c++.十分感谢
问题代码:
[rowNodes removeObject:[NSNull null]];
可以修改为
NSMutableArray *array = rowNodes.mutableCopy;
for (id data in array) {
if ([data isKindOfClass:[NSNull class]]) {
[rowNodes removeObject:data];
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.