<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lands92的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lands92</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lands92]]></copyright><item><title><![CDATA[java.lang.exceptionininitializererror mockito]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/144719871</link><guid>https://blog.youkuaiyun.com/lands92/article/details/144719871</guid><author>lands92</author><pubDate>Wed, 25 Dec 2024 14:55:53 +0800</pubDate><description><![CDATA[排查mockito相关版本是否有冲突。升级一样的版本后恢复。]]></description><category></category></item><item><title><![CDATA[aop执行两次的原因]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/79003282</link><guid>https://blog.youkuaiyun.com/lands92/article/details/79003282</guid><author>lands92</author><pubDate>Mon, 08 Jan 2018 15:25:38 +0800</pubDate><description><![CDATA[JavaConfig方式配置没有此现象，而xml配置出现这样的问题。共同代码如下：
package springinaction.chapter4;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lan]]></description><category></category></item><item><title><![CDATA[spring spring mvc hibernate整合遇到的异常]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/78814460</link><guid>https://blog.youkuaiyun.com/lands92/article/details/78814460</guid><author>lands92</author><pubDate>Fri, 15 Dec 2017 16:36:26 +0800</pubDate><description><![CDATA[ssh-test12-06版本，异常解决过程
[org.springframework.web.context.ContextLoader]Context initialization failed
把web.xml中的hibernate.cfg.xml删掉解决了


  [org.springframework.web.context.support.XmlWebApplication]]></description><category></category></item><item><title><![CDATA[leetcode 刷题总结]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/78377588</link><guid>https://blog.youkuaiyun.com/lands92/article/details/78377588</guid><author>lands92</author><pubDate>Sat, 28 Oct 2017 17:27:54 +0800</pubDate><description><![CDATA[1
Two Sum   
求数组中等于target的两个数的下标
数组
O(n*n)
O(n)，用HashMap存已遍历部分


2
Add Two Numbers
两数相加，数用链表表示，低位在头，高位在尾
链表
当l1、l2不为空或tmp不为0时，依次相加，得到tmp，tmp%10即当前位，tmp/10为进位


3
Longest Substring With]]></description><category></category></item><item><title><![CDATA[LeetCode中应用异或操作的几个题目]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/76832728</link><guid>https://blog.youkuaiyun.com/lands92/article/details/76832728</guid><author>lands92</author><pubDate>Mon, 07 Aug 2017 13:02:16 +0800</pubDate><description><![CDATA[1.LeetCode 89题 Gray Code
public List grayCode2(int n) {
	List result = new LinkedList<>();
	for (int i = 0; i < 1 << n; i++){
		result.add(i ^ i >> 1);
	}
	return result;
}
2.LeetCode 136题 Single Nu]]></description><category></category></item><item><title><![CDATA[LLVM : Unknown CMake command "add_llvm_loadable_module".]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/51648165</link><guid>https://blog.youkuaiyun.com/lands92/article/details/51648165</guid><author>lands92</author><pubDate>Sun, 12 Jun 2016 19:12:07 +0800</pubDate><description><![CDATA[编写LLVM Pass的文档：http://llvm.org/docs/WritingAnLLVMPass.html
1.写Makefile
# Makefile for hello pass

# Path to top level of LLVM hierarchy
LEVEL = ../../..

# Name of the library to build
LIBRARYNAME =]]></description><category></category></item><item><title><![CDATA[CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/51648124</link><guid>https://blog.youkuaiyun.com/lands92/article/details/51648124</guid><author>lands92</author><pubDate>Sun, 12 Jun 2016 18:15:46 +0800</pubDate><description><![CDATA[CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul
卸载就版本的CMake，重新编译安装CMake即可。
CMake编译安装过程：
下载CMake源码包，解压。
打开CMake的根目录后，
./bootstrap
make
make ins]]></description><category></category></item><item><title><![CDATA[安装llvm3.8.0时遇到的问题，FAILED: lib/libLTO.so or FAILED: lib/libclang.so.3.8]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/51554455</link><guid>https://blog.youkuaiyun.com/lands92/article/details/51554455</guid><author>lands92</author><pubDate>Wed, 01 Jun 2016 13:01:47 +0800</pubDate><description><![CDATA[在llvm官方（http://llvm.org/docs/GettingStarted.html）给出的安装需求中，提到硬件：仅安装llvm需要1-3GB的空间。安装llvm和clang则需要15-20GB的硬盘空间。
Note that Debug builds require a lot of time and disk space. An LLVM-only build will need]]></description><category></category></item><item><title><![CDATA[cygwin64降低gcc版本]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/43267019</link><guid>https://blog.youkuaiyun.com/lands92/article/details/43267019</guid><author>lands92</author><pubDate>Thu, 29 Jan 2015 10:06:06 +0800</pubDate><description><![CDATA[gmp  https://gmplib.org/
mpfr http://www.mpfr.org/
下载以上文件，解压到cygwin64/home/Administrator/目录下，分别打开gmp、mpfr文件夹
./configure
make
make install
三条命令]]></description><category></category></item><item><title><![CDATA[有两个文件context.txt和words.conf,请尝试将他们合并成为一段文字，并打印出来。]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38906685</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38906685</guid><author>lands92</author><pubDate>Thu, 28 Aug 2014 22:47:51 +0800</pubDate><description><![CDATA[package com.cn.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
]]></description><category></category></item><item><title><![CDATA[校招笔记]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38846761</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38846761</guid><author>lands92</author><pubDate>Tue, 26 Aug 2014 14:16:50 +0800</pubDate><description><![CDATA[8月24日，进行cvte的基础测评，四十道逻辑思维题，因为没有准备，]]></description><category></category></item><item><title><![CDATA[OJ--分配糖果]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38592951</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38592951</guid><author>lands92</author><pubDate>Fri, 15 Aug 2014 22:34:48 +0800</pubDate><description><![CDATA[题目描述


有n（n个小朋友站成一排（编号从0到n-1)，每个小朋友有一个rating值，存放在ratings数组中。老师需要给他们分配糖果，每个小朋友至少需要一颗糖果，对于任意相邻的两个小朋友i和i+1，rating值大的必须比rating值小的分配的糖果多（rating相同的没必要分配一样多的糖果）。

请计算最少需要多少颗糖果，才能完成上述分配。

题目在线练习地址：http]]></description><category></category></item><item><title><![CDATA[leetcode-reverse words in a string]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38454715</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38454715</guid><author>lands92</author><pubDate>Sat, 09 Aug 2014 11:08:51 +0800</pubDate><description><![CDATA[问题来源：https://oj.leetcode.com/problems/reverse-words-in-a-string/


Given an input string, reverse the string word by word.

For example,
Given s = "the sky is blue",
return "blue is sky the".]]></description><category></category></item><item><title><![CDATA[华为练习题--社交好友判断]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38400533</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38400533</guid><author>lands92</author><pubDate>Wed, 06 Aug 2014 14:23:51 +0800</pubDate><description><![CDATA[好友关系管理



描述:


现有一个社交网站，其好友推荐策略为：用户A和用户B不是好友，当二人的共同好友数量超过好友推荐阈值m时，就向A和B分别推荐为彼此好友。 

本题任务为：对设定的m值，给定一组用户及各自好友列表，对这一组用户，反复自动应用上述好友推荐策略后（假设每次推荐都被采纳），求指定用户的最终好友列表。 

注：好友关系是双向的，即：如果用户A是用户B的好友，]]></description><category></category></item><item><title><![CDATA[华为练习题--B是否可达H]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38398169</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38398169</guid><author>lands92</author><pubDate>Wed, 06 Aug 2014 11:11:31 +0800</pubDate><description><![CDATA[package com.cn.hw.test;

/**
 * @author 刘利娟 liulijuan132@gmail.com
 * @version 创建时间:2014年8月6日 上午8:48:50 类说明：
 *          森林里的苯苯熊要乔迁新喜，上次他已经将物品打包完成，并约了朋友来帮忙。接下来他要选定一个搬家的时间
 *          ，想了很久，就决定在国庆节进行，因]]></description><category></category></item><item><title><![CDATA[2014年去哪儿网笔试题--给定一个整型数组，对这个整型数组排序，使得按序拼接数组各元素得到的值最小。]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38345533</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38345533</guid><author>lands92</author><pubDate>Sat, 02 Aug 2014 09:47:25 +0800</pubDate><description><![CDATA[2014年去哪儿网笔试题--给定一个整型数组，对这个整型素组排序，使得按序拼接数组各元素得到的值最小。
我的大致思路是把这个整型数组转换成String数组，然后通过String类的compareTo方法对这个数组进行第一次排序，排序得到的结果恰好是按字典序排序，而字典序又恰好是数字从0-9的顺序，恰好符合这个要求。最后进行检验下，有的可能需要调换下顺序使得数最小。


package co]]></description><category></category></item><item><title><![CDATA[四种变量交换swap方法]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38305791</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38305791</guid><author>lands92</author><pubDate>Wed, 30 Jul 2014 20:00:47 +0800</pubDate><description><![CDATA[1.void swap(int &x, int &y){
           int]]></description><category></category></item><item><title><![CDATA[java实现二叉树层次遍历]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/38031889</link><guid>https://blog.youkuaiyun.com/lands92/article/details/38031889</guid><author>lands92</author><pubDate>Tue, 22 Jul 2014 08:33:20 +0800</pubDate><description><![CDATA[层次遍历的算法参考自【编程之美】，源代码中使用了stl的vector实现动态扩展属性，在java里面List的特点很符合要求，故将此处改为ArrayList。]]></description><category></category></item><item><title><![CDATA[【编程之美】java实现重建二叉树]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/37992483</link><guid>https://blog.youkuaiyun.com/lands92/article/details/37992483</guid><author>lands92</author><pubDate>Sun, 20 Jul 2014 15:08:38 +0800</pubDate><description><![CDATA[java实现重建二叉树：给出一棵二叉树的前序遍历序列和中序遍历序列，对该二叉树进行重建。]]></description><category></category></item><item><title><![CDATA[Eclipse自动注释-类和方法]]></title><link>https://blog.youkuaiyun.com/lands92/article/details/17850249</link><guid>https://blog.youkuaiyun.com/lands92/article/details/17850249</guid><author>lands92</author><pubDate>Sat, 04 Jan 2014 21:30:18 +0800</pubDate><description><![CDATA[1.使用Alt+Shift+j快捷键添加方法的注释。在此之前进行如下设置：Window->Preferences->Java->Code Style->Code Templates->Comments->Methods->Edit

2.类的注释：Window->Preferences->Java->Code Style->Code Templates->Code->New Java file]]></description><category></category></item></channel></rss>