<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lvlvljn的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lvlvljn</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lvlvljn]]></copyright><item><title><![CDATA[update_ref failed for ref ‘xxx: cannot lock ref ‘xxx‘: is at but expected]]></title><link>https://blog.youkuaiyun.com/lvlvljn/article/details/133736799</link><guid>https://blog.youkuaiyun.com/lvlvljn/article/details/133736799</guid><author>lvlvljn</author><pubDate>Tue, 10 Oct 2023 16:02:19 +0800</pubDate><description><![CDATA[最后把该文件中的内容改为e62daa0b71cad963ea327a98f930fe4ec9450f2b就可以了。今天更新git发生了上述错误，查资料删掉对应项目下的.git/refs/heads/master还是不行，]]></description><category></category></item><item><title><![CDATA[Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: “]]></title><link>https://blog.youkuaiyun.com/lvlvljn/article/details/131845604</link><guid>https://blog.youkuaiyun.com/lvlvljn/article/details/131845604</guid><author>lvlvljn</author><pubDate>Fri, 21 Jul 2023 10:18:07 +0800</pubDate><description><![CDATA[犯了一个很低级的错误，把需要转义的xml写进了<!]]，导致转义的xml直接原样写进了sql。在使用ibatis2.0的时候，报错如下。]]></description><category></category></item><item><title><![CDATA[已知一颗二叉树的层次遍历序列和中序遍历序列，建二叉树过程（递归）]]></title><link>https://blog.youkuaiyun.com/lvlvljn/article/details/113762688</link><guid>https://blog.youkuaiyun.com/lvlvljn/article/details/113762688</guid><author>lvlvljn</author><pubDate>Mon, 08 Feb 2021 21:25:01 +0800</pubDate><description><![CDATA[前面有写过已知先序和中序的建树过程，其实大概原理都差不多。
只不过层次遍历序列比较特殊，它的结点、左子树、右子树不能一下看出。
中心思想：
通过中序序列找到根结点索引（根结点之前为左子树，之后为右子树），再从层次序列分别找到对应的左、右子树（要注意按照层次序列的顺序去找，代码中双重循环处体现）。
如：层次遍历abcxxxx           中序遍历 bxxacxx
↓                                         ↓
↓                        根]]></description><category></category></item><item><title><![CDATA[已知二叉树的先序遍历序列和中序遍历序列，建二叉树过程（递归）]]></title><link>https://blog.youkuaiyun.com/lvlvljn/article/details/113762068</link><guid>https://blog.youkuaiyun.com/lvlvljn/article/details/113762068</guid><author>lvlvljn</author><pubDate>Mon, 08 Feb 2021 20:36:04 +0800</pubDate><description><![CDATA[已知二叉树的先序遍历序列和中序遍历序列，建二叉树过程（递归）
中心思想：
利用先序序列知道每个部分根结点、左子树和右子树，再利用中序序列进行递归
如：先序序列abxxcxx 中序序列bxxacxx
根结点a 左子树bxx 右子树cxx
#include &lt;iostream&gt;
#include &lt;string.h&gt;
#define type char
using namespace std;
typedef struct tree
{	type data;  //结点数据
	tree ]]></description><category></category></item></channel></rss>