今天没有新动态
@kidultff

PAT-A 真题- 1043. Is It a Binary Search Tree

原题干:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The right subtree of a node conta ...
  • 0
  • 0
@kidultff

C语言-二叉查找树(BST)

0x00、二叉查找树的递归定义    二叉查找树(二叉搜索树、二叉排序树、排序二叉树、Binary Search Tree,BST)是一种特殊的二叉树。递归定义如下:●若二叉查找树没有任何节点,则二叉查找树为空树●若二叉查找树不是空树,则二 ...
  • 0
  • 2
@kidultff

PAT-A 真题- 1053. Path of Equal Weight

原题干:Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R to any l ...
  • 0
  • 1
@kidultff

Linux查找含有某些字符串的所有文件

批量查找文件内容:find . -name "*.log" | xargs grep "fatal"这里*.log指的是要找的文件的后缀名,fatal是要找的内容。
  • 0
  • 0
@kidultff

CentOS升级/安装PHP7.1

首先卸载旧版本PHP:yum remove php*接着安装epel:yum -y install epel-release更新软件源(centos自带的软件源没有PHP7):根据系统版本安装!!//Centos 5.X:     rpm -Uvh http ...
  • 0
  • 0