Redis字符串的实现 Redis虽然是用C语言写的,但却没有直接用C语言的字符串,而是自己实现了一套字符串。目的就是为了提升速度,提升性能,可以看出Redis为了高性能也是煞费苦心。 Redis构建了一个叫做简单动态字符串(Simple Dynamic String),简称SDS 1.SDS 代码 ...
分类:
其他好文 时间:
2020-07-27 13:49:13
阅读次数:
72
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:
其他好文 时间:
2020-07-27 09:42:59
阅读次数:
80
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 题意 给出一个 $n$ 点 $m$ 边的带权无向图,找出结点 $1$ 到结点 $n$ 的路径最小权。($n \le 100, m \le 10000$) 题解 $n$ 的范围较小,可以用 $O_{ ...
分类:
其他好文 时间:
2020-07-27 09:38:16
阅读次数:
51
安装wxpython 及其他依赖 #1 安装wxFormBuolder https://sourceforge.net/projects/wxformbuilder/ #2 安装wxpython pip install wxPython -i https://pypi.douban.com/simp ...
分类:
编程语言 时间:
2020-07-27 09:35:55
阅读次数:
69
When you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name ab ...
分类:
其他好文 时间:
2020-07-27 09:29:30
阅读次数:
82
//判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ ...
分类:
其他好文 时间:
2020-07-27 09:18:05
阅读次数:
68
#二叉树的前序遍历(递归版本和迭代版本) #递归实现 ####1.王道408c语言(答题)逻辑版本: void preorder(BiTree T){ if (T != NULL){ //判断树是否为空 visit(T); //访问根结点 preorder(T->lchild) //访问左子树 pr ...
分类:
其他好文 时间:
2020-07-26 19:17:13
阅读次数:
69
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6756 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107590312 Problem Description Given an ...
分类:
其他好文 时间:
2020-07-26 15:58:23
阅读次数:
139
一、环境变量相关的配置文件 1)/etc/profile 全局(公有)配置,不管是哪个用户,登录时都会读取该文件。 2)/ect/bashrc Ubuntu没有此文件,与之对应的是/ect/bash.bashrc 它也是全局(公有)的 bash执行时,不管是何种方式,都会读取此文件。 3)~/.pr ...
分类:
其他好文 时间:
2020-07-26 15:54:46
阅读次数:
123
安装模块: pip install 模块名 利用豆瓣源指定路径安装: pip install -i http://pypi.douban.com/simple/ paramiko --trusted-host pypi.douban.com --target=E:\pythondir\venv\Li ...
分类:
编程语言 时间:
2020-07-26 15:37:42
阅读次数:
80