94-144-145二叉树三序遍历 Posted on 2020-05-25 Words count in article: 1.1k | Reading time ≈ 4 94-144-145二叉树三序遍历所谓三序遍历,就是前序遍历,中序遍历和后序遍历。那么在之前的博客二叉树当中我已经详细的写了二叉树的基本知识,构建,遍历。在leetcode上,也有这三道题目。 题目给出的代码123456789101112131415/** * Definition for a bi ... Read more »
python练习题 Posted on 2020-05-24 Words count in article: 30 | Reading time ≈ 1 python练习题 12345678a = [random.randint(10,99) for i in range(10)]b = []for item in a: if(item%2==0): continue else: b.append(item)p ... Read more »
更新日志 Posted on 2020-05-22 Words count in article: 475 | Reading time ≈ 1 更新日志(五月)5.22 完善 二叉树 细节 完善 离散数学part2 贝叶斯定律部分 更新 离散数学part3 期望部分(未完结) 完善 Mysql基础的1.5汇总数据部分(已完结) 完善格林公式书本作业部分 5.23 完善 对面积的曲面积分 中书本作业部分 完善对坐标的曲面积分 中书本作业部 ... Read more »
离散概率part3 Posted on 2020-05-22 Words count in article: 3k | Reading time ≈ 11 离散概率part3Outline Expectation 期望的两种计算方法期望的定义:所有的随机变量可能的取值乘以对应的概率,然后再求和。 但是我们要知道E(X)是一个加权的平均数。E(X)不再是一个随机变量了 定义一个偏差(deviation)为随机变量减去期望 基于定义求 比如说我抛硬币100 ... Read more »
无穷级数 Posted on 2020-05-20 Words count in article: 720 | Reading time ≈ 2 无穷级数常数项级数的概念引例1.用圆内接正多边形面积逼近圆面积依次作圆内接正$3 \cdot 2^n(n=1,2,\Lambda)$ 边形,设$a_0$表示内接正三角形的面积,$a_k$表示边数增加时增加的面积,则圆内接正$3\cdot 2^n$边形的面积为 $a_0+a_1+a_2+\Lambda ... Read more »
python办公 Posted on 2020-05-20 Words count in article: 1.2k | Reading time ≈ 5 python办公Working with Paths12345678910111213from pathlib import Pathpath = Path("__init__.py")path.exists() #让文件一直打开着print(path.is_file()) # 判断该路径是否为 ... Read more »
82-83删除链表的重复元素 Posted on 2020-05-20 Words count in article: 797 | Reading time ≈ 3 82. 删除排序链表中的重复元素 II下面是题目 下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode ... Read more »
1124表现良好的最长时间段 Posted on 2020-05-20 Words count in article: 111 | Reading time ≈ 1 1124表现良好的最长时间段 解答1234567891011121314151617181920212223242526#include<bits/stdc++.h>using namespace std;class Solution {public: int longe ... Read more »
636函数独占时间 Posted on 2020-05-19 Words count in article: 571 | Reading time ≈ 2 636函数独占时间 下面是题目给出的模板123456class Solution {public: vector<int> exclusiveTime(int n, vector<string>& logs) { }} ... Read more »
C++多态 Posted on 2020-05-19 Words count in article: 1.1k | Reading time ≈ 4 Day07总结静态联编和动态联编12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717 ... Read more »