<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Jankin'way]]></title><description><![CDATA[Hooya!]]></description><link>https://blog.youkuaiyun.com/github_39329077</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_39329077]]></copyright><item><title><![CDATA[note-of-python]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/122239903</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/122239903</guid><author>github_39329077</author><pubDate>Thu, 30 Dec 2021 16:28:19 +0800</pubDate><description><![CDATA[文章目录pycharm环境搭建python软件相关杂项python基础数据类型：整数：浮点数：字符串：布尔值：空值变量常量字典切片(Slice)python多变量赋值函数printlru缓存优化import模块`from xxx import funcName``from ... import *` 把一个模块的所有内容全都导入到当前的命名空间`__name__`属性内置函数dir()sys 模块变量作用域包classmethod正则表达式(regular expression)历史作用正则表达式字符非打印]]></description><category></category></item><item><title><![CDATA[note-of-git]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/122022115</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/122022115</guid><author>github_39329077</author><pubDate>Sun, 19 Dec 2021 11:57:51 +0800</pubDate><description><![CDATA[之前学git做的笔记，一些参考链接分享出来]]></description><category></category></item><item><title><![CDATA[重拾 char 与 ASCII]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/118965711</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/118965711</guid><author>github_39329077</author><pubDate>Thu, 22 Jul 2021 22:51:26 +0800</pubDate><description><![CDATA[引入
在leetcode上做的一道题，对其中一个解法有个小坑，可以讨论下
面试题 10.02. 变位词组
先放代码
class Solution {
public:
    vector&lt;vector&lt;string&gt;&gt; groupAnagrams(vector&lt;string&gt;&amp; strs) {
        map&lt;string, int&gt; mp;
        vector&lt;vector&lt;string&gt;&gt; ans;
   ]]></description><category></category></item><item><title><![CDATA[二分查找 之初值设置的区别分析]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/118797901</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/118797901</guid><author>github_39329077</author><pubDate>Fri, 16 Jul 2021 14:44:59 +0800</pubDate><description><![CDATA[left = 0, r = v. size() - 1, while(l &lt;= r)时
void test() {
	vector&lt;int&gt; v{1, 3, 5, 7, 9, 11, 13, 15, 17};
    vector&lt;int&gt; vl, vr, vm;
    int find_val;
    //输入要查询的值，看二分搜索下标的情况
    while(cin &gt;&gt; find_val) {
        int l = 0, r = v.size(]]></description><category></category></item><item><title><![CDATA[报错处理 无法解析的外部命令、heap-buffer-overflow No matching function for call to ‘max‘]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/118061373</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/118061373</guid><author>github_39329077</author><pubDate>Sun, 20 Jun 2021 00:24:31 +0800</pubDate><description><![CDATA[报错
无法解析的外部命令：往往时在链接时出错，有以下可能：


虚函数没有实现


写了同一功能的普通函数和函数模板，但普通函数没有实现


heap-buffer-overflow

数组越界
申请的堆空间不足，注意new int[10];是申请10个int空间，new int(10)是申请一个int并初始化为10


...]]></description><category></category></item><item><title><![CDATA[523. 连续的子数组和 同余定理，前缀和,set]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/117465417</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/117465417</guid><author>github_39329077</author><pubDate>Wed, 02 Jun 2021 13:38:49 +0800</pubDate><description><![CDATA[523. 连续的子数组和 同余定理，前缀和
题目：
给你一个下标从 0 开始的二进制字符串 s 和两个整数 minJump 和 maxJump 。一开始，你在下标 0 处，且该位置的值一定为 ‘0’ 。当同时满足如下条件时，你可以从下标 i 移动到下标 j 处：
i + minJump &lt;= j &lt;= min(i + maxJump, s.length - 1) 且
s[j] == ‘0’.
如果你可以到达 s 的下标 s.length - 1 处，请你返回 true ，否则返回 false 。]]></description><category></category></item><item><title><![CDATA[993.二叉树的堂兄弟结点 之妙不可言的位操作]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/117280727</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/117280727</guid><author>github_39329077</author><pubDate>Wed, 26 May 2021 09:45:11 +0800</pubDate><description><![CDATA[993. 二叉树的堂兄弟结点
题目：
在二叉树中，根结点位于深度 0 处，每个深度为 k 的结点的子结点位于深度 k+1 处。
如果二叉树的两个结点深度相同，但 父结点不同 ，则它们是一对堂兄弟结点。
我们给出了具有唯一值的二叉树的根结点 root ，以及树中两个不同结点的值 x 和 y 。
只有与值 x 和 y 对应的结点是堂兄弟结点时，才返回 true 。否则，返回 false。
来源：力扣（LeetCode）
github题解仓库
blog：https://blog.youkuaiyun.com/github_3]]></description><category></category></item><item><title><![CDATA[206.反转链表 递归，原地，栈，队列]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/117280478</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/117280478</guid><author>github_39329077</author><pubDate>Wed, 26 May 2021 09:38:18 +0800</pubDate><description><![CDATA[206. 反转链表
题目：
给你单链表的头节点 head ，请你反转链表，并返回反转后的链表。
github题解仓库
解法一：
大致流程就是递归到链表的末尾，然后返回反转后的头结点，在返回的过程中反转，并传递回来这个头结点。
抓住reverseList函数返回的是目标链表的头结点这一点思考返回值，思考返回值该用什么接。
引入pre参数，原链表中各个结点head和head-&gt;next的关系(head是head-&gt;next前驱)在目标链表中会是相反的关系。
先写的第一版，然后多想一步就成了第二版。
]]></description><category></category></item><item><title><![CDATA[897.递增顺序搜索树 递归思考]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/117257464</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/117257464</guid><author>github_39329077</author><pubDate>Tue, 25 May 2021 15:44:45 +0800</pubDate><description><![CDATA[897. 递增顺序搜索树
题目：
给你一棵二叉搜索树，请你 按中序遍历 将其重新排列为一棵递增顺序搜索树，使树中最左边的节点成为树的根节点，并且每个节点没有左子节点，只有一个右子节点。
来源：力扣（LeetCode）
github题解仓库
解法一：
思路：
函数最终要返回该二叉搜索树最左边的节点，也是以该节点为根节点的递增顺序搜索树，所以设计的递归函数的返回值应该是所给搜索树的最左边的节点ans。中序遍历中引入pos(后继)这个参数可以很方便的处理前后继之间的关系，pos参数表示当前节点在中序遍历中的后继节]]></description><category></category></item><item><title><![CDATA[7.整数反转]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/117257148</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/117257148</guid><author>github_39329077</author><pubDate>Tue, 25 May 2021 15:37:03 +0800</pubDate><description><![CDATA[7. 整数反转
题目：
给你一个 32 位的有符号整数 x ，返回将 x 中的数字部分反转后的结果。
如果反转后整数超过 32 位的有符号整数的范围 [−231,  231 − 1] ，就返回 0。
假设环境不允许存储 64 位整数（有符号或无符号）。
来源：力扣（LeetCode）
题解链接：https://github.com/TrespassingoO/notes-of-algorithm
解法一：
思路：
先处理掉x==-2^31次方的情况(不然去符号时会溢出），取出x的符号，然后将x的绝对值存入字]]></description><category></category></item><item><title><![CDATA[优秀blog推荐]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/116569501</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/116569501</guid><author>github_39329077</author><pubDate>Sun, 09 May 2021 23:24:33 +0800</pubDate><description><![CDATA[早期程序员，行文可出书的感觉，一些问题的讨论和见解，今天看来还是颇有收获。于是便有了这篇文章。
https://blog.youkuaiyun.com/g9yuayon
比如：g9对当时有大学生抱怨学校所教的工具已经脱离了工业，我觉得是挺中肯的，大概就是说：工具的迭代很快，学校应该教的是几十年不变的核心知识、设计思想，和对一门学科入门的引导，对于细节和工具的使用，就留着学生自行课下完成，同时学生更应该注重数学、计算机底层原理概念方面的学习，这样出来工作，工具的学习和掌握是很快的，大学四年能打好这些方面的基础就已经不容易]]></description><category></category></item><item><title><![CDATA[算法小本本]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/114006667</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/114006667</guid><author>github_39329077</author><pubDate>Fri, 12 Mar 2021 14:55:42 +0800</pubDate><description><![CDATA[碎碎念

同一个表达式换一换字母可能会好理解些
	INF作为无穷大一般设为10^9(int的最大值约为2*10^9)
	考虑结果为0
	
	
   for(int i = 0; i &lt; n ; i++) sum += r[i]/2;//直接把1去掉求和
	
	
	
   for(int i = n; i &gt;= 1; i--) s[i * 2 + 1] = s[i], s[i * 2 + 2] = '#';// 从后往前赋值可以节省一个数组
	
Stl

位操作

x&lt;&lt;1|1 == ]]></description><category></category></item><item><title><![CDATA[PAT 乙 1003 我要通过！]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/114338478</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/114338478</guid><author>github_39329077</author><pubDate>Thu, 04 Mar 2021 00:36:11 +0800</pubDate><description><![CDATA[1003 我要通过！

“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于 PAT 的“答案正确”大派送 —— 只要读入的字符串满足下列条件，系统就输出“答案正确”，否则输出“答案错误”。

得到“答案正确”的条件是：

字符串中必须仅有P、A、T这三种字符，不可以包含其它字符；
	任意形如xPATx的字符串都可以获得“答案正确”，其中x或者是空字符串，或者是仅由字母A组成的字符串；
	如果aPbTc是正确的，那么aPbATca也是正确的，其中a、b、c均或者是空...]]></description><category></category></item><item><title><![CDATA[Dijkstra算法 pat1030 Travel Plan]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/113924481</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/113924481</guid><author>github_39329077</author><pubDate>Mon, 22 Feb 2021 00:40:59 +0800</pubDate><description><![CDATA[Description

A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest path between his/her starting city and the destin]]></description><category></category></item><item><title><![CDATA[微信小程序巧用wx:if来控制伪元素::after::before的显示]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/106238590</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/106238590</guid><author>github_39329077</author><pubDate>Wed, 20 May 2020 16:46:39 +0800</pubDate><description><![CDATA[上图中每个block是一个flex布局的容器，容器里可以放三个内容，当内容为null时由于还是有class=“date”的标签存在，就会有多余的显示，于是想到用wx::if来控制这个class='date'的标签，来隐藏对应的::after的显示。（当然，如果直接不存内容也就不会有上面的问题）

解决后效果:




...]]></description><category></category></item><item><title><![CDATA[基于Bmob云开发微信小程序报错：Bmob.Error:{code:415, message:incorrect parameter type.}]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/106176827</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/106176827</guid><author>github_39329077</author><pubDate>Sun, 17 May 2020 17:35:41 +0800</pubDate><description><![CDATA[第一次用Bomb云，从官方文档上学习给表单中pointer类型的列添加值，遇到坑：



问题分析：

commentObjectId是异步获取的，因此请求添加失败。

对文档方法使用太陌生，完全可以不用objectId来添加内容

正确的使用方法：

不用再次访问comments表通过objectId来添加pointer类型直接全部赋值。



顺便说下文档Bmob云微信小程序（新）开发文档上添加pointer类型那段代码各参数的含义：








...]]></description><category></category></item><item><title><![CDATA[c itoa函数的递归实现 及static小插曲]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/98873836</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/98873836</guid><author>github_39329077</author><pubDate>Thu, 08 Aug 2019 15:56:26 +0800</pubDate><description><![CDATA[测试对静态变量声明及定义疑问同时，给出itoa函数（把整数转换为字符串）的实现。


#include&lt;stdio.h&gt;
#include&lt;math.h&gt;
#define MAXSIZE 100
char s[MAXSIZE];
void itoa1(int n, char s[])//该程序仅供测试静态声明，无法将负数正确转换 
{
	//起初思想：若为负数，则初次声明后...]]></description><category></category></item><item><title><![CDATA[查找最接近的元素  分治]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/88048016</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/88048016</guid><author>github_39329077</author><pubDate>Fri, 01 Mar 2019 01:07:49 +0800</pubDate><description><![CDATA[L+1&amp;lt;R

查找最接近的元素出处：http://ybt.ssoier.cn:8088/problem_show.php?pid=1240

Description

在一个非降序列中，查找与给定值最接近的元素。

Input

第一行包含一个整数n，为非降序列长度。1 ≤ n ≤ 100000。

第二行包含n个整数，为非降序列各元素。所有元素的大小均在0-1,000,000,000之间...]]></description><category></category></item><item><title><![CDATA[oj2011 分治 快速幂 高精度除低精度]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/86708747</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/86708747</guid><author>github_39329077</author><pubDate>Thu, 14 Feb 2019 22:40:48 +0800</pubDate><description><![CDATA[2011

出处：http://ybt.ssoier.cn:8088/problem_show.php?pid=1234

Description

已知长度最大为200位的正整数n，请求出2011n的后四位。

Input

第一行为一个正整数k，代表有k组数据（k≤200），接下来的k行，每行都有一个正整数n，n的位数≤200。

Output

每一个n的结果为一个整数占一行，若不足4位，去...]]></description><category></category></item><item><title><![CDATA[Crossing river  贪心]]></title><link>https://blog.youkuaiyun.com/github_39329077/article/details/86708948</link><guid>https://blog.youkuaiyun.com/github_39329077/article/details/86708948</guid><author>github_39329077</author><pubDate>Wed, 30 Jan 2019 22:18:30 +0800</pubDate><description><![CDATA[Description

A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangement must be arranged in order to row the bo...]]></description><category></category></item></channel></rss>