<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Bebirds的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Bebirds</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Bebirds]]></copyright><item><title><![CDATA[为什么重写equals时必须重写hashCode方法？]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/116275048</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/116275048</guid><author>Bebirds</author><pubDate>Thu, 29 Apr 2021 18:56:49 +0800</pubDate><description><![CDATA[为什么重写equals时必须重写hashCode方法？
​		以java 1.8 的 HashMap为例，不管我们是在put，get还是remove时，都要先经过hash方法定位key存在的Node数组位置，然后遍历该位置的红黑树或链表，使用equals方法进行比较，而hashcode()方法默认是对堆上的对象产生独特值.
//Object.class
/**
 * Returns a hash code value for the object. 
 */
public native int hashCo]]></description><category></category></item><item><title><![CDATA[4月18日，腾讯笔试第二题发广告]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/115844663</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/115844663</guid><author>Bebirds</author><pubDate>Mon, 19 Apr 2021 01:16:22 +0800</pubDate><description><![CDATA[4月18日，腾讯笔试第二题发广告
 输入:
 n	m  //n 表示用户数量， m表示需要发广告数）
 t1			//n 组输入，ti表示 给第 i 个用户发广告的时间，在ti的倍数时也需要给用户 i 在发一份广告
 ...		//时间相撞时， 先输出 id 较小的用户
 tn
   
 案例
 3	5
 3
 6
 9
   
 输出： （第三秒输出 1， 第六秒时输出 1，2，第 9 秒时输出1，3）
 1
 1
 2
 1
 3


当时一下没做起来，结束后整理一下思路写出来了， 不知道能不能A全部数]]></description><category></category></item><item><title><![CDATA[LeetCode二叉树篇题解,看这一篇就够了]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/114642233</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/114642233</guid><author>Bebirds</author><pubDate>Wed, 10 Mar 2021 18:10:31 +0800</pubDate><description><![CDATA[LeetCode二叉树篇题解,看这一篇就够了
文章目录LeetCode二叉树篇题解,看这一篇就够了基础知识树的三种遍历递归实现栈迭代统一结构层序遍历判断 BST构建 BST还原树(LeetCode——105,106)平衡二叉树二叉树的路径问题其他
基础知识
二叉树的基础知识参考
java中提供 Deque双端队列实现队列与栈的各种需求, 题目中经常会用到如下

offerlast(node)添加元素到队尾
offerFist(node)添加元素到队头
new LinkedList&lt;&gt;(deque]]></description><category></category></item><item><title><![CDATA[单例模式]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/114490344</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/114490344</guid><author>Bebirds</author><pubDate>Sun, 07 Mar 2021 17:17:51 +0800</pubDate><description><![CDATA[单例模式
一、什么是单例模式
在编程开发中经常会遇到这样一种场景，那就是需要保证一个类只有一个实例哪怕多线程同时访问，并需要提供一个全局访问此实例的点.
单例模式是5个创建型模式的最后一个，可以说是整个设计中最简单的模式之⼀,其定义是单例对象的类只能允许一个实例存在。
单例例模式主要解决的是，一个全局使用的类频繁的创建和消费，从而提升整体的代码的性能。
单例的实现主要是通过以下两个步骤:
1.将该类的构造方法定义为私有方法, 这样其他处的代码就无法通过调用该类的构造方法来实例话该类的对象, 只有通过该类提供]]></description><category></category></item><item><title><![CDATA[双指针篇]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/114409315</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/114409315</guid><author>Bebirds</author><pubDate>Fri, 05 Mar 2021 19:19:26 +0800</pubDate><description><![CDATA[LeetCode双指针篇
定义:
双指针有时也叫快慢指针,一般是指的在遍历对象的过程中，不是使用单个指针进行访问，而是使用两个相同方向或者相反方向的指针进行扫描，从而达到相应的目的。
表现方式：
在数组里是用两个整型值代表下标，在链表里是两个指针.
同向移动： 在同向移动时，指针互相之间间隔一个距离进行移动
相向移动： 在相向移动中，双指针一个指针在开头，另外一个指针在结尾，根据满足的条件进行移动指针；
同向移动

3.无重复字符的最长子串
题目链接
考察: String , HashSet , 双指针(滑]]></description><category></category></item><item><title><![CDATA[排序篇]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/114083234</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/114083234</guid><author>Bebirds</author><pubDate>Thu, 25 Feb 2021 14:58:05 +0800</pubDate><description><![CDATA[排序篇
文章目录排序篇Java库函数实现方式一: Comparable接口方式二 : 使用比较器Comparator接口Arrays.sort底层算法原理排序算法排序分类排序算法怎么选择一、冒泡排序（Bubble Sort）二、快速排序（Quicksort）三、选择排序(Selection sort)四、插入排序(InsertSort)五、归并排序(MergingSort)六、希尔排序(ShellSort)七、堆排序(HeapSort)
Java库函数实现

Java.util里自带给数组排序的方法Arra]]></description><category></category></item><item><title><![CDATA[01.两数之和]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/113740217</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/113740217</guid><author>Bebirds</author><pubDate>Sun, 07 Feb 2021 14:14:11 +0800</pubDate><description><![CDATA[01.两数之和
暴力解法： O（$ N^2$）两层for循环遍历所有可能.
收获： 学会如何返回数组.
static int[] twoSum(int[] nums, int target) {
    for(int i = 0 ;i&lt;nums.length ;i++){
      for(int j = 0 ; j &lt; nums.length ; j++){
        if( i == j)
          continue;
        if(nums[i]+ nums[j]]></description><category></category></item><item><title><![CDATA[word里面mathtype选项是灰色解决办法]]></title><link>https://blog.youkuaiyun.com/Bebirds/article/details/105925575</link><guid>https://blog.youkuaiyun.com/Bebirds/article/details/105925575</guid><author>Bebirds</author><pubDate>Mon, 04 May 2020 23:30:45 +0800</pubDate><description><![CDATA[太坑人了！搞了四个小时！对着网上的解决办法一个一个试，就差重装系统了！

分享一下我的解决办法。不一定对你适用。

激活！！！！激活！！！激活！！！



打开mathtype，点help，点unlock。输入密匙

FirstName:llion
Lastname:mecssi
Organization:llionmecssi
Key:MTWE691-011084-r0xyl

重新打...]]></description><category></category></item></channel></rss>