python
mbinary
博客 https://mbinary.xyz
展开
-
用python程序实现两种方法发表csdn博客
我有个基于github pages的博客,又在很多其他网站上发博客. 比如csdn . 为了避免重复操作,想用程序实现自动发博客. 今天上午就试了一下csdn这个网站方法一– 用api来发送博客进入开发者文档可以看到注册开发者, 使用文档中的方式获得access_token来获取授权然后就可以post了,比如这篇文章, 方法二 – 模拟登陆用pytho...原创 2018-04-06 13:13:38 · 1336 阅读 · 3 评论 -
『数据结构』红黑树(red-black tree)
1. 定义与性质红黑树是一种平衡的二叉查找树1.1. 数据域每个结点有 5 个数据域 * color: red or black * key: keyword * left: pointer to left child * right:pointer to right child * p: pointer to nil leaf1.2. 红黑性质满足下面的 ...原创 2018-07-14 17:58:24 · 434 阅读 · 0 评论 -
String Matching algorithm
See more on githubRabin-KarpWe can view a string of k characters (digits) as a length-k decimal number. E.g., the string “31425” corresponds to the decimal number 31,425.Given a pattern P [1…m],...原创 2018-12-11 15:24:09 · 541 阅读 · 0 评论