[置顶] 网络前辈的文章搜集

摘要: [toc] 一个老程序员的30年生涯回顾(译文) 阮一峰的网络日志 http://www.ruanyifeng.com/blog/2019/12/30 years software career.html H5 手机 App 开发入门:概念篇 http://www.ruanyifeng.com/bl 阅读全文

posted @ 2020-02-14 13:18 Paulkg12 阅读(114) 评论(0) 推荐(0) 编辑

[置顶] ➡️➡️➡️IELTS speaking by simon

摘要: [toc] p1 课程概述 p2 speaking part1, intro, warm up 话题一般都很 childdish eg: what is your favourite colour ans: my favourite colour is blue because it's the c 阅读全文

posted @ 2020-02-06 16:46 Paulkg12 阅读(586) 评论(0) 推荐(0) 编辑

[置顶] ➡️➡️➡️IELTS Listening

摘要: [toc] src https://ielts simon.com/ielts help and english pr/ielts listening/ numbers and letters tdo {20 02 03 15:04} https://ielts simon.com/ielts he 阅读全文

posted @ 2020-02-02 10:29 Paulkg12 阅读(291) 评论(0) 推荐(0) 编辑

[置顶] ➡️➡️➡️IELTS reading by Simon on Bili

摘要: 高分必备 雅思考官Simon手把手教你做阅读 p1 https://www.bilibili.com/video/av40131278?p=2 p2 https://www.bilibili.com/video/av40131278 p3 done at 0203 p4 阅读全文

posted @ 2020-02-02 10:08 Paulkg12 阅读(162) 评论(0) 推荐(0) 编辑

2022年12月6日

图片解释CA,服务器,客户端如何完成证书验证,也就是HTTPS是如何保证的

摘要: CA (小红人)知道服务器的公钥,对证书采用散列技术生成一个摘要(红色消息)。 CA 使用 CA 私钥对该摘要进行加密,并附在证书(黄色证书)下方,发送给服务器(小绿人)。 现在服务器将该证书发送给客户端(小紫人),客户端需要验证该证书的身份。 客户端找到第三方机构 CA,获知 CA 的公钥,并用 阅读全文

posted @ 2022-12-06 11:52 Paulkg12 阅读(541) 评论(0) 推荐(0) 编辑

2020年5月3日

lc0503

摘要: [TOC] ✅ 748. 最短完整词 https://leetcode cn.com/problems/shortest completing word/ 描述 解答 我估计,是可以先把牌照里面的统计好,然后到目标单词里,一个个比对; c watch todo 2020 05 03 15:08 cp 阅读全文

posted @ 2020-05-03 15:15 Paulkg12 阅读(139) 评论(0) 推荐(0) 编辑

2020年5月2日

lc0502

摘要: [TOC] ✅ 1071. 字符串的最大公因子 https://leetcode cn.com/problems/greatest common divisor of strings/ 描述 解答 sum: java and c using py 那边是用:最长替换子 来干 why we can u 阅读全文

posted @ 2020-05-02 19:58 Paulkg12 阅读(426) 评论(0) 推荐(0) 编辑

2020年3月31日

lc0331

摘要: [TOC] ✅ 538. 把二叉搜索树转换为累加树 https://leetcode cn.com/problems/convert bst to greater tree/ 描述 解答 我们要遍历整个二叉树,然后找比较大的吗? 非也,二叉搜索树 BST 有性质:右边的大啊。 RNL的 中序遍历搞一 阅读全文

posted @ 2020-03-31 17:01 Paulkg12 阅读(149) 评论(0) 推荐(0) 编辑

2020年3月29日

lc0329

摘要: [TOC] ✅ 812. 最大三角形面积 https://leetcode cn.com/problems/largest triangle area 描述 py 阅读全文

posted @ 2020-03-29 20:03 Paulkg12 阅读(143) 评论(0) 推荐(0) 编辑

2020年3月27日

lc0327

摘要: [TOC] ✅ 面试题40. 最小的k个数 https://leetcode cn.com/problems/zui xiao de kge shu lcof/ 描述 ✅ 868. 二进制间距 https://leetcode cn.com/problems/binary gap/ 描述 py 学习 阅读全文

posted @ 2020-03-27 11:28 Paulkg12 阅读(126) 评论(0) 推荐(0) 编辑

2020年3月26日

lc0326

摘要: [toc] ✅ 1170. 比较字符串最小字母出现频次 描述 我们来定义一个函数 f(s),其中传入参数 s 是一个非空字符串;该函数的功能是统计 s 中(按字典序比较)最小字母的出现频次。 例如,若 s = "dcce",那么 f(s) = 2,因为最小的字母是 "c",它出现了 2 次。 现在, 阅读全文

posted @ 2020-03-26 11:04 Paulkg12 阅读(137) 评论(0) 推荐(0) 编辑

2020年3月24日

lc0324

摘要: [toc] ✅ 119. 杨辉三角 II https://leetcode cn.com/problems/pascals triangle ii/ 描述 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 解答 他人: c/Java c / 获取杨辉三角的指定行 直接使用组合公式 阅读全文

posted @ 2020-03-24 20:43 Paulkg12 阅读(134) 评论(0) 推荐(0) 编辑

2020年3月20日

lc0320

摘要: [toc] ✅ Bigram 分词 描述 解答 也就是找到两个重复出现的单词呗,然后输出它们两个各自后面跟着的一个。 哦哦, 原来 first and second 是已经给出的,不需要我们去自己找。 开放性问题:你会自己找到 字符串中 可以当作 first second 的单词吗 c 阅读全文

posted @ 2020-03-20 18:30 Paulkg12 阅读(97) 评论(0) 推荐(0) 编辑

2020年3月19日

lc0319

摘要: [toc] ✅ 693. 交替位二进制数 https://leetcode cn.com/problems/binary number with alternating bits/ 描述 解答 遍历每个二进制位,然后 比较前面的和自己:如果和自己一样,则return false; 如果走到最后(by 阅读全文

posted @ 2020-03-19 11:22 Paulkg12 阅读(125) 评论(0) 推荐(0) 编辑

2020年3月16日

lc0316

摘要: [TOC] ✅ 13. 罗马数字转整数 https://leetcode cn.com/problems/roman to integer/ 描述 解答 c todo watch me py py 博君一笑 py: thread lock api java 用原子类型 Java 用信号量 api 阅读全文

posted @ 2020-03-16 14:04 Paulkg12 阅读(207) 评论(0) 推荐(0) 编辑

2020年3月15日

lc0315

摘要: [toc] ✅ 1332. 删除回文子序列 https://leetcode cn.com/problems/remove palindromic subsequences/ 描述 ✅ 884. 两句话中的不常见单词 https://leetcode cn.com/problems/uncommon 阅读全文

posted @ 2020-03-15 12:40 Paulkg12 阅读(113) 评论(0) 推荐(0) 编辑

2020年3月14日

lc0314

摘要: [toc] ✅ 1317. 将整数转换为两个无零整数的和 https://leetcode cn.com/problems/convert integer to the sum of two no zero integers/ 描述 「无零整数」是十进制表示中 不含任何 0 的正整数。 给你一个整数 阅读全文

posted @ 2020-03-14 17:35 Paulkg12 阅读(127) 评论(0) 推荐(0) 编辑

2020年3月12日

lc0312

摘要: [toc] ✅ 1030. 距离顺序排列矩阵单元格 https://leetcode cn.com/problems/matrix cells in distance order/ 描述 给出 R 行 C 列的矩阵,其中的单元格的整数坐标为 (r, c),满足 0 () { @Override pu 阅读全文

posted @ 2020-03-12 10:31 Paulkg12 阅读(106) 评论(0) 推荐(0) 编辑

2020年3月9日

py实现一个shell

摘要: @[toc] ref 我们要实现的一个 shell 类似物 参考了: https://linux.cn/article 7624 1.html https://zcfy.cc/article/create your own shell in python part ii git hub code : 阅读全文

posted @ 2020-03-09 19:05 Paulkg12 阅读(149) 评论(0) 推荐(0) 编辑

lc0309

摘要: [toc] ✅ 872. 叶子相似的树 https://leetcode cn.com/problems/leaf similar trees/ 描述 请考虑一颗二 叉树上所有的叶子,这些叶子的值按从左到右的顺序排列形成一个 叶值序列 。 举个例子,如上图所示,给定一颗叶值序列为 (6, 7, 4, 阅读全文

posted @ 2020-03-09 17:13 Paulkg12 阅读(106) 评论(0) 推荐(0) 编辑

2020年3月6日

lc0306

摘要: [toc] ✅ 257. 二叉树的所有路径 https://leetcode cn.com/problems/binary tree paths/https://leetcode cn.com/problems/binary tree paths/ 描述 解答 这就是个深度搜索吧? 深度搜索 dfs 阅读全文

posted @ 2020-03-06 13:55 Paulkg12 阅读(167) 评论(0) 推荐(0) 编辑

2020年2月28日

lc 0228

摘要: [toc] ✅ 412. Fizz Buzz https://leetcode cn.com/problems/fizz buzz 描述 解答 按照题意直接 for + if 吧 c数字转字符: itoa sprintf other's c c py 使用了自己的dfs 思路, failed tod 阅读全文

posted @ 2020-02-28 18:24 Paulkg12 阅读(157) 评论(0) 推荐(0) 编辑

什么是函数,干嘛啊,怎么干。一个py程序员的视角.md

摘要: 什么是函数,干嘛啊,怎么干。一个py程序员的视角.md [toc] 前言 本文参考 https://www.runoob.com/python/python functions.html 本质 math definition 这里的f 就是函数。 你给f 一点参数,f 给你返回 使用这个参数x 后的 阅读全文

posted @ 2020-02-28 12:35 Paulkg12 阅读(514) 评论(0) 推荐(0) 编辑

2020年2月27日

lc 0227

摘要: [toc] ✅ 1189. “气球” 的最大数量 描述 解答 思路: bucket 数组,(或者用map/py 字典实现更好) 统计 ballon 这个字典里的最小数 cpp todo watch py ✅ 784. 字母大小写全排列 https://leetcode cn.com/problems 阅读全文

posted @ 2020-02-27 20:35 Paulkg12 阅读(484) 评论(0) 推荐(0) 编辑

2020年2月26日

lc 0226

摘要: [toc] ✅ 232. 用栈实现队列 https://leetcode cn.com/problems/implement queue using stacks 描述 解答 c py ✅ 496. 下一个更大元素 I https://leetcode cn.com/problems/next gr 阅读全文

posted @ 2020-02-26 20:48 Paulkg12 阅读(218) 评论(0) 推荐(0) 编辑

2020年2月24日

637. 二叉树的层平均值 ;值得思考的层序遍历

摘要: 值得思考的层序遍历.md [toc] 637. 二叉树的层平均值 https://leetcode cn.com/problems/average of levels in binary tree/ 描述 try1 final ans think; different; final ans 和 tr 阅读全文

posted @ 2020-02-24 11:15 Paulkg12 阅读(146) 评论(0) 推荐(0) 编辑

lc 0224

摘要: [toc] 0224 algo todo: ✅ 766. 托普利茨矩阵 https://leetcode cn.com/problems/toeplitz matrix 描述 解答 思路: 判断 即可 只需判断:前行中除最后一个元素外剩余的元素完全等于后行中除第一个元素外剩余的元素。 cpp py 阅读全文

posted @ 2020-02-24 11:13 Paulkg12 阅读(262) 评论(0) 推荐(0) 编辑

2020年2月23日

lc 0223

摘要: [toc] ✅ 669. 修剪二叉搜索树 https://leetcode cn.com/problems/trim a binary search tree 描述 解答 思路:是递归 写递归一定要把每步做什么,终止条件考虑清楚,思路一旦不清楚绕进去就再也出不来了 java py ✅ 883. 三维 阅读全文

posted @ 2020-02-23 20:03 Paulkg12 阅读(186) 评论(0) 推荐(0) 编辑

2020年2月22日

lc 0222

摘要: [toc] ✅ 191. 位1的个数 描述 解答 cpp py ✅ 107. 二叉树的层次遍历 II 描述 解答 传统解法: 使用层序遍历,中间加上 stack 问题是,我不知道如何让 截止 一个 层。这个问题就描述不清楚。那你去看看py的实现 c todo 观赏 0222 py ✅ 806. 写字 阅读全文

posted @ 2020-02-22 20:10 Paulkg12 阅读(645) 评论(0) 推荐(0) 编辑

2020年2月19日

lc 0219

摘要: [toc] ✅ 463. 岛屿的周长 描述 解答 way1: 关注每个是1 的方格,关注其上下左右,是边界吗?(是则+1)是0 吗?(是则+1) way2: 直接遍历数组,只要前面有相邻的方格,就 2 cpp way1 py ✅ 1122. 数组的相对排序 描述 cpp py ✅ 876. 链表的中 阅读全文

posted @ 2020-02-19 14:58 Paulkg12 阅读(264) 评论(0) 推荐(0) 编辑

2020年2月18日

leetcode 0218

摘要: [toc] ✅ 1200. 最小绝对差 描述 ✅ 897. 递增顺序查找树 描述 解答 cpp my dont compile pass: 指针问题? output: fuck ptr py ✅ 183. 从不订购的客户 https://leetcode cn.com/problems/custom 阅读全文

posted @ 2020-02-18 15:58 Paulkg12 阅读(287) 评论(0) 推荐(0) 编辑

2020年2月17日

leetcode 0217

摘要: [toc] ✅ 682. 棒球比赛 描述 解答 多个 if 去判断 字符 就好了吧? cpp 注意: 注意: 你要好好记得 参数 : 里面的每一个都是string ,so use: ✅ 999. 车的可用捕获量 描述 解答 c other java todo ✅ 118. 杨辉三角 https:// 阅读全文

posted @ 2020-02-17 14:04 Paulkg12 阅读(257) 评论(0) 推荐(0) 编辑

2020年2月16日

leetcode 0216

摘要: [toc] ✅ 893. 特殊等价字符串组 https://leetcode cn.com/problems/groups of special equivalent strings 描述 ✅ 811. 子域名访问计数 https://leetcode cn.com/problems/subdoma 阅读全文

posted @ 2020-02-16 12:13 Paulkg12 阅读(175) 评论(0) 推荐(0) 编辑

2020年2月15日

leetcode 0215

摘要: [toc] 0215 algo ✅ 1002. 查找常用字符 https://leetcode cn.com/problems/find common characters 描述 解答 本来的思路是 两个 array: book1 book2 book1 保存 的 里面的 所有出现的字符的; 如下图 阅读全文

posted @ 2020-02-15 11:42 Paulkg12 阅读(154) 评论(0) 推荐(0) 编辑

导航