package LeetCode_166 /** * 166. Fraction to Recurring Decimal * https://leetcode.com/problems/fraction-to-recurring-decimal/description/ * * Given two ...
分类:
其他好文 时间:
2020-07-14 00:36:05
阅读次数:
87
编写脚本文件 #!/bin/bash #chkconfig: 22345 10 90 #description: Start and Stop redis REDISPORT=6379 EXEC=/usr/local/soft/redis5/bin/redis-server CLIEXEC=/usr ...
分类:
其他好文 时间:
2020-07-14 00:34:31
阅读次数:
331
Boost库中的 program_options用于实现命令行参数配置 program_options的组成成分 项描述器 分析器 存储器 |构造option_description对象和variables_map对象 |add_options()->向option_description对象添加选 ...
分类:
其他好文 时间:
2020-07-13 18:05:27
阅读次数:
57
Description link 给定一棵二叉树,每个叶子上面有权值,你可以任意交换某个点的两颗子树 使得最后形成的树的中序遍历出来的子树的逆序对最少 \(n \le 2\times10^5\) Solution 如果你真的想做这个题,请耐心手玩样例并看懂这个题神仙一样的输入方式…… 考虑逆序对怎么 ...
分类:
其他好文 时间:
2020-07-13 09:17:09
阅读次数:
52
题目链接 https://leetcode-cn.com/problems/binary-tree-preorder-traversal/description/ 题解一:递归 // Problem: LeetCode 144 // URL: https://leetcode-cn.com/prob ...
分类:
其他好文 时间:
2020-07-13 00:00:50
阅读次数:
90
package LeetCode_138 /** * 138. Copy List with Random Pointer * https://leetcode.com/problems/copy-list-with-random-pointer/description/ * * A linked ...
分类:
其他好文 时间:
2020-07-12 23:59:05
阅读次数:
90
##题面 Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our dai ...
分类:
其他好文 时间:
2020-07-12 17:05:48
阅读次数:
132
##题面 Problem Description Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x ...
分类:
其他好文 时间:
2020-07-12 16:40:31
阅读次数:
59
Description 给定一个字符串 \(S\) 以及整数 \(n\),现在生成一个字符串 \(T\),每次可以等概率地随机选取大写字母的前 \(n\) 个并加到 \(T\) 的末尾。 当 \(T\) 中某个字串为 \(S\) 时停止该过程。 求 \(T\) 的期望长度。 多组数据,不超过 10 ...
分类:
其他好文 时间:
2020-07-12 12:33:41
阅读次数:
86
Description Name: dpwwn: 1 Date release: 4 Aug 2019 DHCP service: Enabled IP address: Automatically assign Goal: Gain the root privilege and obtain th ...
分类:
其他好文 时间:
2020-07-12 12:01:55
阅读次数:
75