<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hza163的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/hza163</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; hza163]]></copyright><item><title><![CDATA[leetCode刷题记录5-每日1题&拓展]]></title><link>https://blog.csdn.net/hza163/article/details/149274798</link><guid>https://blog.csdn.net/hza163/article/details/149274798</guid><author>hza163</author><pubDate>Fri, 11 Jul 2025 15:53:48 +0800</pubDate><description><![CDATA[leetcode刷题]]></description><category></category></item><item><title><![CDATA[leetCode刷题记录4-面试经典150题-2]]></title><link>https://blog.csdn.net/hza163/article/details/138665796</link><guid>https://blog.csdn.net/hza163/article/details/138665796</guid><author>hza163</author><pubDate>Fri, 10 May 2024 14:45:15 +0800</pubDate><description><![CDATA[主要就是度为0的不必非要用栈，用队列也行，队列直接作为拓扑排序的终止条件即可。没有前置关系时不需要要特判，全是度为0的节点，也可以照常执行。不要用statck，继承了Vector, 有很多锁，效率很低。修改后4ms,差不多了吧。]]></description><category></category></item><item><title><![CDATA[leetCode刷题记录1]]></title><link>https://blog.csdn.net/hza163/article/details/132199944</link><guid>https://blog.csdn.net/hza163/article/details/132199944</guid><author>hza163</author><pubDate>Wed, 09 Aug 2023 23:33:12 +0800</pubDate><description><![CDATA[200. 岛屿数量经典老题  D/BFS求连通分量个数
先用BFS写了一下，好多细节错误然后代码写得很糟糕
看了题解，再去优化：
1、DFS代码要比BFS简单多了
2、遍历过的直接修改值为非1即可，不用专门准备visit数组了
3、DFS也不需要dx、dy数组，直接写四次dfs递归调用即可，看起来清爽多了重写了一下，果然舒服多了，不要总想着c++那一套，太麻烦了：
206. 反转链表
206. 反转链表

据说递归可以做这题

果然可以，类似后序遍历的写法，也很简单
207. 课程表
207. 课程表
好久]]></description><category></category></item><item><title><![CDATA[leetCode刷题记录3-面试经典150题]]></title><link>https://blog.csdn.net/hza163/article/details/131941858</link><guid>https://blog.csdn.net/hza163/article/details/131941858</guid><author>hza163</author><pubDate>Wed, 26 Jul 2023 19:56:22 +0800</pubDate><description><![CDATA[DFS暴力枚举，过了198个，也不错了。408原题，4刷了，现在感觉很水了。注意k可能很大，需要对长度取一下模。没啥头绪，先暴力拿分，也是能力。强制加缓存，竟然超出内存限制。]]></description><category></category></item><item><title><![CDATA[面试题复盘]]></title><link>https://blog.csdn.net/hza163/article/details/131217243</link><guid>https://blog.csdn.net/hza163/article/details/131217243</guid><author>hza163</author><pubDate>Wed, 14 Jun 2023 22:26:21 +0800</pubDate><description><![CDATA[大厂面试题复盘]]></description><category></category></item><item><title><![CDATA[leetCode刷题记录2]]></title><link>https://blog.csdn.net/hza163/article/details/130790480</link><guid>https://blog.csdn.net/hza163/article/details/130790480</guid><author>hza163</author><pubDate>Sun, 21 May 2023 12:04:55 +0800</pubDate><description><![CDATA[同步遍历，但是得先验证，后验的话root=null->root=new TreeNode() 连不起来。left应该小于右边所有元素 为何非要从前往后遍历呢，从后往前遍历 其实一趟就够了呀。想想之前遍历树时遇到过这个问题，当时用前缀和+Map做得，飞快呀，这里不也可以么。同样right是后面都比它大 也可以从前往后一趟遍历。或者排序后比较前最长前缀和最长后缀。当然两次遍历可以优化为1次遍历。果然可以，快了不是一点点啊。竟然才7ms,也挺快的呀。这么写，会快2~3ms。0ms 时间效率还不错。]]></description><category></category></item><item><title><![CDATA[leetcodeTmp]]></title><link>https://blog.csdn.net/hza163/article/details/130109298</link><guid>https://blog.csdn.net/hza163/article/details/130109298</guid><author>hza163</author><pubDate>Wed, 12 Apr 2023 15:55:02 +0800</pubDate><description><![CDATA[DFS排列：每个元素可选0次，1次以及多次。]]></description><category></category></item><item><title><![CDATA[leetCode刷题记录0]]></title><link>https://blog.csdn.net/hza163/article/details/129739976</link><guid>https://blog.csdn.net/hza163/article/details/129739976</guid><author>hza163</author><pubDate>Thu, 23 Mar 2023 21:35:47 +0800</pubDate><description><![CDATA[d  不如就算出来i=(a[i]-a[0])/d  若不能整除false 或者出现重复i false  Hash[d]记录是否1~d都出现过 真是等差一定会0~len-1各出现一次的。一次遍历找到最大最小值 那么公差 d = (max-min)/(len-1) 不能整除直接return false。O(n)+一个O(n)空间的数组就OK了，完全不需要排序。然后再遍历，第i项 a[i] = a[0]+i。]]></description><category></category></item><item><title><![CDATA[Python-Utils]]></title><link>https://blog.csdn.net/hza163/article/details/128894357</link><guid>https://blog.csdn.net/hza163/article/details/128894357</guid><author>hza163</author><pubDate>Sun, 05 Feb 2023 22:15:36 +0800</pubDate><description><![CDATA[【代码】Python-Utils。]]></description><category></category></item><item><title><![CDATA[剑指offer 81题-Python版本(前37DP之前)-Java版本(后43DP开始)]]></title><link>https://blog.csdn.net/hza163/article/details/128741914</link><guid>https://blog.csdn.net/hza163/article/details/128741914</guid><author>hza163</author><pubDate>Fri, 20 Jan 2023 15:28:34 +0800</pubDate><description><![CDATA[树2有的树1都有 直到树2遍历完 返回True 【可以树1有，树2没有，仍返回True，也就是树1跟着树2遍历即可 例如层序跟着树2，可以少入队一些结点】前面2种方式都过于依赖先序遍历 (导致有了递归，看起来好难  其实简单理解为先序遍历，也还好)难点： 两个子树的判断(是否有子关系)，需要单独拎出来。下面这种方式完全用层序遍历  理解起来就简单多了。]]></description><category></category></item><item><title><![CDATA[JZ76 删除链表中重复的结点]]></title><link>https://blog.csdn.net/hza163/article/details/128738250</link><guid>https://blog.csdn.net/hza163/article/details/128738250</guid><author>hza163</author><pubDate>Thu, 19 Jan 2023 21:45:25 +0800</pubDate><description><![CDATA[【代码】JZ76 删除链表中重复的结点。]]></description><category></category></item><item><title><![CDATA[JZ35 复杂链表的复制]]></title><link>https://blog.csdn.net/hza163/article/details/128723626</link><guid>https://blog.csdn.net/hza163/article/details/128723626</guid><author>hza163</author><pubDate>Wed, 18 Jan 2023 10:18:36 +0800</pubDate><description><![CDATA[【代码】JZ35 复杂链表的复制。]]></description><category></category></item><item><title><![CDATA[JZ22 链表中倒数最后k个结点]]></title><link>https://blog.csdn.net/hza163/article/details/128237416</link><guid>https://blog.csdn.net/hza163/article/details/128237416</guid><author>hza163</author><pubDate>Thu, 08 Dec 2022 15:15:33 +0800</pubDate><description><![CDATA[【代码】JZ22 链表中倒数最后k个结点。]]></description><category></category></item><item><title><![CDATA[JZ23 链表中环的入口结点]]></title><link>https://blog.csdn.net/hza163/article/details/128236820</link><guid>https://blog.csdn.net/hza163/article/details/128236820</guid><author>hza163</author><pubDate>Thu, 08 Dec 2022 14:51:09 +0800</pubDate><description><![CDATA[【代码】JZ23 链表中环的入口结点。]]></description><category></category></item><item><title><![CDATA[Python科学计算库-Matplotlib]]></title><link>https://blog.csdn.net/hza163/article/details/128160247</link><guid>https://blog.csdn.net/hza163/article/details/128160247</guid><author>hza163</author><pubDate>Sat, 03 Dec 2022 17:05:07 +0800</pubDate><description><![CDATA[Matplotlib
学习目标
应用Matplotlib的基本功能实现图形显示
应用Matplotlib实现多图显示
应用Matplotlib实现不同画图种类matplotlib.pytplot包含了一系列类似于matlab的画图函数。
1.2.2 图形绘制流程

1.创建画布 – plt.figure()




2.绘制图像 – plt.plot(x, y)
以折线图为例3.显示图像 – plt.show()举例：展现上海一周的天气,比如从星期一到星期日的天气温度如下


2、折线图(plot)与基础绘]]></description><category></category></item><item><title><![CDATA[Python函数4-API]]></title><link>https://blog.csdn.net/hza163/article/details/128161300</link><guid>https://blog.csdn.net/hza163/article/details/128161300</guid><author>hza163</author><pubDate>Sat, 03 Dec 2022 14:41:34 +0800</pubDate><description><![CDATA[长期更新
1.1 random.random()



1.2 random.seed(n)
用于设定种子值，其中的n可以是任意数字。
random.random() 生成随机数时，每一次生成的数都是随机的。
但是，使用 random.seed(n) 设定好种子之后，在先调用seed(n)时，使用 random() 生成的随机数将会是同一个。(保证每次运行的随机结果一样)
1.3 random.uniform(a,b)
返回a,b之间的均匀分布里随机采样的浮点数，若a=b则范围]]></description><category></category></item><item><title><![CDATA[python面向对象小练习-学员管理系统-eval()、__dict__]]></title><link>https://blog.csdn.net/hza163/article/details/128077401</link><guid>https://blog.csdn.net/hza163/article/details/128077401</guid><author>hza163</author><pubDate>Sat, 03 Dec 2022 11:46:25 +0800</pubDate><description><![CDATA[使用面向对象编程思想完成学员管理系统的开发，具体如下：创建项目目录，例如：程序文件如下：需求：
3.2 managerSystem.py
需求：
3.2.2 管理系统框架
需求：系统功能循环使用，用户输入不同的功能序号执行不同的功能。
3.3 main.py

3.4 定义系统功能函数
3.4.1 添加功能


需求：用户输入学员姓名、性别、手机号，将学员添加到系统。步骤代码
3.4.2 删除学员

需求：用户输入目标学员姓名，如果学员存在则删除该学员。
步骤

用户输入目标学员姓名
遍历学员数据列表，如果]]></description><category></category></item><item><title><![CDATA[Python模块和包]]></title><link>https://blog.csdn.net/hza163/article/details/128056476</link><guid>https://blog.csdn.net/hza163/article/details/128056476</guid><author>hza163</author><pubDate>Sun, 27 Nov 2022 19:24:54 +0800</pubDate><description><![CDATA[Python 模块(Module)，是一个 Python 文件，以 .py 结尾，包含了 Python 对象定义和Python语句。模块能定义函数，类和变量，模块里也能包含可执行的代码。]]></description><category></category></item><item><title><![CDATA[Python异常]]></title><link>https://blog.csdn.net/hza163/article/details/128054792</link><guid>https://blog.csdn.net/hza163/article/details/128054792</guid><author>hza163</author><pubDate>Sat, 26 Nov 2022 20:17:27 +0800</pubDate><description><![CDATA[在Python中，抛出自定义异常的语法为raise 异常类对象。需求：密码长度不足，则报异常（用户输入密码，如果输入的长度不足3位，则报错，即抛出自定义异常，并捕获该异常）。# 自定义异常类，继承Exception class ShortInputError(Exception) : def __init__(self , length , min_len) : self . length = length。]]></description><category></category></item><item><title><![CDATA[Python面向对象3-其他-多态、类属性(静态)、类方法(带参静态)、(无参)静态方法]]></title><link>https://blog.csdn.net/hza163/article/details/128046093</link><guid>https://blog.csdn.net/hza163/article/details/128046093</guid><author>hza163</author><pubDate>Fri, 25 Nov 2022 23:20:45 +0800</pubDate><description><![CDATA[类属性只能通过类对象修改，不能通过实例对象修改，如果通过实例对象修改类属性，表示的是创建了一个实例属性。多态指的是一类事物有多种形态，（一个抽象类有多个子类，因而多态的概念依赖于继承）。]]></description><category></category></item></channel></rss>