https://leetcode-cn.com/problems/path-sum-iii/ 看了一眼这个题,再仔细思考了一会,我心想:这TM是简单题? 回溯和普通树的遍历思想都想过,还是解不出来,最后看评论区才学习到了一个新知识:双重递归。 因为这个题中,每一个节点都可能是路径的起始点,所以不能用 ...
分类:
其他好文 时间:
2020-04-24 21:42:28
阅读次数:
84
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V ...
分类:
编程语言 时间:
2020-04-24 21:32:26
阅读次数:
185
/* time:2020年4月24日19:35:14 where:gfdx function:函数求和*/ #include <stdio.h> int sum(int m, int n); int main() { int m, n; scanf("%d %d", &m, &n); printf( ...
分类:
编程语言 时间:
2020-04-24 19:51:06
阅读次数:
582
第4章 级数 4.1 复数项级数与复变函数级数 4.1.1复数序列与复数项级数 定义 :设$\{z_n\}$是一个复数序列,又设$z_0 = a+ib$为一复常数。如果对于任意$\varepsilon 0$,存在正整数N,使得n N时,总有$|z_n z_0|0$,存在正整数N,使当m,n N时,恒 ...
分类:
其他好文 时间:
2020-04-24 13:15:23
阅读次数:
148
原文:net core天马行空系列: 一个接口多个实现类,利用mixin技术通过自定义服务名,实现精准属性注入 系列目录 1.net core天马行空系列:原生DI+AOP实现spring boot注解式编程 2.net core天马行空系列: 泛型仓储和声明式事物实现最优雅的crud操作 哈哈哈哈... ...
分类:
Web程序 时间:
2020-04-24 13:02:36
阅读次数:
84
spider文件 继承RedisCrawlSpider,实现全站爬取数据 import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from h ...
分类:
数据库 时间:
2020-04-24 09:16:11
阅读次数:
141
1、新建一个test_a.py文件 def print_sum(a,b): if(type(a)==int or type(b) == int): print(a+b) else: print("请输入数字") 新建一个test_b.py文件,在b中引入test_a import test_a te ...
分类:
编程语言 时间:
2020-04-24 01:50:39
阅读次数:
147
<fetch distinct="false" mapping="logical" aggregate="true" > <entity name="account" > <attribute name="name" alias="countorsum" aggregate="count" /> < ...
分类:
其他好文 时间:
2020-04-24 01:35:28
阅读次数:
81
LINK: "随机漫游" 非常妙的一道题。 容易想到倒推期望。 设状态 f[i][j]表示到达第i个点 此时已经到达的集合为j能走到全集的期望边数。 只要求出来这个就能O(1)回答询问。 $f[i][j]=1+\sum_{v\in son_x,v\notin j}\frac{1}{d_i}f[i][ ...
分类:
其他好文 时间:
2020-04-23 23:27:48
阅读次数:
131
* 操作系统的发展史 ```python """ 其实主要就是围绕cpu的利用率问题 """ ``` * 多道技术 ```python """ 单核实现并发的效果 并发:看起来像同时运行的就可以叫做并发 并行:真正意义上的同时运行 ps:明显出轨 >>>: 星轨 空间与时间上的复用 空间上 多个程序 ...
分类:
系统相关 时间:
2020-04-23 23:04:50
阅读次数:
90