今天没有新动态
@kidultff

PAT-A 真题 – 1127 ZigZagging on a Tree

Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple standard routine to print the numb ...
  • 0
  • 1
@kidultff

PAT-A 真题 – 1126 Eulerian Path

In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were first discussed by Leonhard Euler ...
  • 0
  • 0
@kidultff

宝塔面板Nginx的Lua-Waf防火墙终极改进 动态封禁IP

宝塔面板自带的Nginx防火墙有些鸡肋,对于大量的恶意攻击只能临时拦截,而不能封禁IP,下面的修改可以帮你做到:CC攻击屡教不改,立即ban!漏洞扫描屡教不改:立即ban!同一个IP段轮流攻击,整个IP段都给你ban了!使用了CDN?没关系,获取了真实IP ...
  • 0
  • 0
@kidultff

WordPress调试-输出数据库查询语句和每条语句查询耗时

直接上代码:首先在wp-config.php中底部添加代码,保存查询内容:define('SAVEQUERIES', true);接着找到你主题文件目录里面的页脚文件,一般是footer.php,找到合适位置,添加:echo "<!--"; print_r($wpdb->q ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1123 Is It a Complete AVL Tree

An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this propert ...
  • 0
  • 4