编程笔记

  • LeetCode 226 Invert Binary Tree DFS

    Given the root of a binary tree, invert the tree, and return its root. Solution: 直接使用 /(DFS/) 进行递归即可: 点击查看代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; *…

    编程笔记 2022年7月19日
  • json命令

    from io import BytesIO import requests import pdfplumber req = requests.get("https://www1.hkexnews.hk/listedco/listconews/sehk/2020/0124/2020012400942_c.pdf") with pdfplumber.load(BytesIO(req.content…

    编程笔记 2022年7月19日
  • kubeadm+docker(cri-dockerd)方式部署k8s单master集群 (v1.24.3)

    1、环境配置 关闭防火墙systemctl stop firewalld && systemctl disable firewalld 关闭selinuxsetenforce 0sed -i 's/enforcing/disabled/' /etc/selinux/config 关闭swapswapoff -a sed -ri 's/.*swap.*/…

    编程笔记 2022年7月19日
  • [Google] LeetCode 366 Find Leaves of Binary Tree 思维+DFS

    Given the root of a binary tree, collect a tree's nodes as if you were doing this: Collect all the leaf nodes. Remove all the leaf nodes. Repeat until the tree is empty. Solution 给定一个二叉树,每次…

    编程笔记 2022年7月19日
  • [Typescript] Unknow and any Types

    `any` type, you can assign any value for any type.   For `unkown`, you can also assign any value to unkwon:   But you cannot assign unkwon variable to another variable without checking the type, unkn…

    编程笔记 2022年7月19日
  • HO引擎近况20220719

    这俩月一晃就过来了 媳妇恢复的差不多了,虽然再要怀孕怎么也要养半年 但是我现在已经不想要孩子了 公司的项目时间紧任务重 还有各种莫名其妙的人在莫名其妙的地方找事 如果再要孩子我这辈子就完了 真的好累啊,我自…

    编程笔记 2022年7月19日
  • K8s 面试题

      1、k8s核心组件包括如下 K8s Master 组件   kube-apiserver :K8s 集群访问入口,此接口封装了增删改查功能,提供给外部客户端和内部组件调用(将维护的数据持久化到etcd)。   kube-scheduler(调度器) :…

    编程笔记 2022年7月19日
  • 第三周周总结

    本周主要是矩阵计算的相关任务 一下是 源码 // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr…

    编程笔记 2022年7月19日
  • fiddler5+雷电模拟器4.0对app抓包设置

    这次项目刚好需要对微信小程序进行抓包分析,二话不说拿起手机咔咔一顿连接,发现在备用机苹果上抓包正常,但主的安卓机上证书怎么装都失败,原来安卓7版本以后对用户自行安装的证书不再信任,所以无法抓包。 因为…

    编程笔记 2022年7月19日
  • 2022-7-18 & 19 #15

    遇到简单 div.2,结果 D 编了一个巨大复杂的做法,调了 114 年没过。。。D1 还 fst 了。。。 为啥我会觉得优先队列 pop 清空内存而 vector swap 空指针不清空内存啊。。。 039 AGC052C Nondivisible Prefix Sums 04…

    编程笔记 2022年7月19日