下载busyboxx86可直接下载,运行http://www.busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/arm+debian需要编译安装aptinstallatpitudeaptitudeinstalllibncurses5-dev下载源码:makemenuconfig;选择BuildBusyboxasastati
                            
                            
                                分类:
其他好文   时间:
2020-05-19 16:44:57   
                                阅读次数:
132
                             
                    
                        
                            
                            
                                    1、下载安装包 wget https://www.percona.com/downloads/percona-toolkit/3.0.12/binary/redhat/6/x86_64/percona-toolkit-3.0.4-1.el7.x86_64.rpm直接安装会报没有依赖包的错误如下 2、 ...
                            
                            
                                分类:
其他好文   时间:
2020-05-19 14:28:36   
                                阅读次数:
89
                             
                    
                        
                            
                            
                                    C and C++ allow various types of operators. By now, you should be familiar with the basic binary operators +, -, *, / and the boolean operators <, >,  ...
                            
                            
                                分类:
其他好文   时间:
2020-05-19 12:14:52   
                                阅读次数:
62
                             
                    
                        
                            
                            
                                    题目: 二叉树的最大深度:给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。 说明: 叶子节点是指没有子节点的节点。 思路: 借助层序遍历来做,有多少层树就有多深。 程序: # Definition for a binary tree node. # clas ...
                            
                            
                                分类:
编程语言   时间:
2020-05-19 11:06:30   
                                阅读次数:
164
                             
                    
                        
                            
                            
                                算法分析 主定律: Master Theorem 常用算法的时间复杂度 Algorithm Recurrence relationship Run time Binary Search T(n) = T(n/2) + O(1) O(logn) Binary Tree traversal T(n) = ...
                            
                            
                                分类:
编程语言   时间:
2020-05-19 10:33:19   
                                阅读次数:
58
                             
                    
                        
                            
                            
                                    题目: 相同的树:给定两个二叉树,编写一个函数来检验它们是否相同。 如果两个树在结构上相同,并且节点具有相同的值,则认为它们是相同的。 思路: 递归秒解,思路也简单。 程序: # Definition for a binary tree node. # class TreeNode: # def _ ...
                            
                            
                                分类:
编程语言   时间:
2020-05-18 21:01:41   
                                阅读次数:
86
                             
                    
                        
                            
                            
                                    此博客链接:https://www.cnblogs.com/ping2yingshi/p/12907812.html 二叉树的最大深度(59min) 题目链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/ 给定一个二叉树 ...
                            
                            
                                分类:
其他好文   时间:
2020-05-18 01:09:22   
                                阅读次数:
126
                             
                    
                        
                            
                            
                                    题目: 二叉搜索树迭代器:实现一个二叉搜索树迭代器。你将使用二叉搜索树的根节点初始化迭代器。 调用 next() 将返回二叉搜索树中的下一个最小的数。 思路: 二叉搜索树使用中序,然后弹出栈底。 程序: # Definition for a binary tree node. # class Tre ...
                            
                            
                                分类:
编程语言   时间:
2020-05-16 10:55:17   
                                阅读次数:
70
                             
                    
                        
                            
                            
                                    题目: 二叉树的锯齿形层次遍历:给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。 思路: 使用层序遍历的思路,但是没有用到栈。 程序: # Definition for a binary tree node. # class T ...
                            
                            
                                分类:
编程语言   时间:
2020-05-16 10:35:55   
                                阅读次数:
103
                             
                    
                        
                            
                            
                                    COMMON OPERATORS IN C Unary Operators: take only one argument e.g. unary -, unary +, ++, --, ! (-2), (+2), a++, a--, !done Binary Operators: take two  ...
                            
                            
                                分类:
其他好文   时间:
2020-05-16 09:23:53   
                                阅读次数:
80