<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[YuanTheCoder的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/YuanTheCoder</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; YuanTheCoder]]></copyright><item><title><![CDATA[Intro to Dynamic Programming 动态规划专题 [1]]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100110584</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100110584</guid><author>YuanTheCoder</author><pubDate>Wed, 28 Aug 2019 00:59:56 +0800</pubDate><description><![CDATA[1 动态规划简介
动态规划在查找有很多重叠子问题的情况的最优解时有效。它将问题重新组合成子问题。为了避免多次解决这些子问题，它们的结果都逐渐被计算并被保存，从简单的问题直到整个问题都被解决。因此，动态规划保存递归时的结果，因而不会在解决同样的问题时花费时间。
动态规划只能应用于有最优子结构的问题。最优子结构的意思是局部最优解能决定全局最优解（对有些问题这个要求并不能完全满足，故有时需要引入一定的近...]]></description><category></category></item><item><title><![CDATA[Java Map/Collections 的使用场景]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100072854</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100072854</guid><author>YuanTheCoder</author><pubDate>Mon, 26 Aug 2019 10:35:37 +0800</pubDate><description><![CDATA[原文链接：

http://www.sergiy.ca/guide-to-selecting-appropriate-map-collection-in-java
]]></description><category></category></item><item><title><![CDATA[Generics in Java, Java generics 的使用]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100070398</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100070398</guid><author>YuanTheCoder</author><pubDate>Mon, 26 Aug 2019 10:29:26 +0800</pubDate><description><![CDATA[Generics in Java,  Java generics 的使用
1 Introduction to generics
Generics are a way to tell a compiler what type of object a collection can contain. The idea is to allow type (Integer, String, … etc an...]]></description><category></category></item><item><title><![CDATA[Leetcode 38. Count and Say Java解法]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100058565</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100058565</guid><author>YuanTheCoder</author><pubDate>Sat, 24 Aug 2019 23:19:18 +0800</pubDate><description><![CDATA[The count-and-say sequence is the sequence of integers with the first five terms as following:


1.     1
2.     11
3.     21
4.     1211
5.     111221


1is read off as"one 1"or11.11is read off ...]]></description><category></category></item><item><title><![CDATA[leetcode 70. Climbing Stairs Java解法，Amazon面试]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100009226</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/100009226</guid><author>YuanTheCoder</author><pubDate>Thu, 22 Aug 2019 10:39:58 +0800</pubDate><description><![CDATA[You are climbing a stair case. It takesnsteps to reach to the top.

Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?

Note:Givennwill be a positive...]]></description><category></category></item><item><title><![CDATA[Leetcode 250. Count Univalue Subtrees 谷歌面试, Java解法详解]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/99945418</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/99945418</guid><author>YuanTheCoder</author><pubDate>Thu, 22 Aug 2019 10:19:58 +0800</pubDate><description><![CDATA[这是一道谷歌会考的题目

Given a binary tree, count the number of uni-value subtrees.

A Uni-value subtree means all nodes of the subtree have the same value.

Example :


Input:  root = [5,1,5,5,5,null,5]

     ...]]></description><category></category></item><item><title><![CDATA[Java 简单Project 2, 学生数据库]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/99920242</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/99920242</guid><author>YuanTheCoder</author><pubDate>Wed, 21 Aug 2019 05:08:35 +0800</pubDate><description><![CDATA[任务描述



实现：


package com.company;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // ask how many students we want to add
        System.out.prin...]]></description><category></category></item><item><title><![CDATA[狗家 Online Assessment]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98899511</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98899511</guid><author>YuanTheCoder</author><pubDate>Thu, 08 Aug 2019 23:57:26 +0800</pubDate><description><![CDATA[License Key Formatting
	Unique Email Addresses
	Fruit Into Baskets
	Odd Even Jump
	Maximum Area Serving Cake
	Min Days to Bloom
	Fill Matrix
	Compare Strings
	Largest Subarray Length K
	Decreasing Sub...]]></description><category></category></item><item><title><![CDATA[IntelliJ Idea, Java8 连接 MySQL 之方法Windows]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98476363</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98476363</guid><author>YuanTheCoder</author><pubDate>Sun, 04 Aug 2019 23:52:56 +0800</pubDate><description><![CDATA[1. 准备条件

安装Java, 我的安装版本是Java 8.

安装MySQL， 我的安装版本是 MySQL 8.0.15, 到官网下载安装即可，一路点默认的选项，下一步。安装完成后需要添加到PATH.

还要在MySQL 额外下载一个connector, 根据自己安装的版本下载，我的是mysql-connector-java-8.0.15.jar。

然后把connector 的jar...]]></description><category></category></item><item><title><![CDATA[Java 简单Project 1, 命令行程序]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98310181</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98310181</guid><author>YuanTheCoder</author><pubDate>Sat, 03 Aug 2019 11:19:49 +0800</pubDate><description><![CDATA[1. 命令行程序

利用main函数可以接受参数 String[] args 这一特点。


public static void main(String[] args)

2. 任务描述

写一个命令行程序，能够

1. 读取一个目录下的所有文件和子目录

2. 在每个文件中寻找一段文本，支持正则查找

3. 把所有符合条件的文件添加到一个ZIP压缩包。

3. 逐步分析

3.1

首先，我...]]></description><category></category></item><item><title><![CDATA[Java中 Queue队列的用法及例子]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98107480</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/98107480</guid><author>YuanTheCoder</author><pubDate>Thu, 01 Aug 2019 22:33:08 +0800</pubDate><description><![CDATA[1. Usage 用法


// "static void main" must be defined in a public class.
public class Main {
    public static void main(String[] args) {
        // 1. Initialize a queue.
        Queue&lt;Integer&gt; q...]]></description><category></category></item><item><title><![CDATA[亚麻 OA 2019 题目]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/97695814</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/97695814</guid><author>YuanTheCoder</author><pubDate>Mon, 29 Jul 2019 23:08:57 +0800</pubDate><description><![CDATA[Most Common Word
	Prison Cells After N Days
	K Closest Points to Origin
	Reorder Log Files
	Partition Labels
	Min Cost to Add New Roads
	Min distance to remove the obstacle
	Roll Dice
	Min Cost to Con...]]></description><category></category></item><item><title><![CDATA[Leetcode [141, 142] Linked List Cycle，java解法]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/97235193</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/97235193</guid><author>YuanTheCoder</author><pubDate>Thu, 25 Jul 2019 09:43:24 +0800</pubDate><description><![CDATA[141 Linked List Cycle

Given a linked list, determine if it has a cycle in it.

To represent a cycle in the given linked list, we use an integerposwhich represents the position (0-indexed)in the l...]]></description><category></category></item><item><title><![CDATA[Leetcode[217, 136, 349, 202] HashTable 小专题 1 HashSet]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96690463</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96690463</guid><author>YuanTheCoder</author><pubDate>Sun, 21 Jul 2019 15:43:27 +0800</pubDate><description><![CDATA[HashTableis a data structure which organizes data usinghash functionsin order to supportquick insertion and search.In this article, we will take a look at the principle of the hash table.

一 自己定...]]></description><category></category></item><item><title><![CDATA[Leetcode 1089. Duplicate Zeros, java解法 及Queue的使用]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96605872</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96605872</guid><author>YuanTheCoder</author><pubDate>Sat, 20 Jul 2019 17:21:58 +0800</pubDate><description><![CDATA[Given a fixed lengtharrayarrof integers, duplicate each occurrence of zero, shifting the remaining elements to the right.

Note that elements beyond the length of the original array are not written...]]></description><category></category></item><item><title><![CDATA[Leetcode[498, 54, 118 ] Array 专题（2） 2D Array]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96454461</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96454461</guid><author>YuanTheCoder</author><pubDate>Fri, 19 Jul 2019 11:51:34 +0800</pubDate><description><![CDATA[此类题目就是花式遍历2维数组，我个人并不喜欢。



498.Diagonal Traverse

Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image.

Example:


I...]]></description><category></category></item><item><title><![CDATA[Leetcode 283. Move Zeroes java解法]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96098771</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96098771</guid><author>YuanTheCoder</author><pubDate>Tue, 16 Jul 2019 08:58:48 +0800</pubDate><description><![CDATA[Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.

Example:


Input: [0,1,0,3,12]
Output: [1,3,12,0,0]

Note:

You m...]]></description><category></category></item><item><title><![CDATA[Leetcode 1119. Remove Vowels from a String, Java解法]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96042831</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/96042831</guid><author>YuanTheCoder</author><pubDate>Mon, 15 Jul 2019 23:52:40 +0800</pubDate><description><![CDATA[Given a stringS, remove the vowels'a','e','i','o', and'u'from it, and return the new string.

Example 1:


Input: "leetcodeisacommunityforcoders"
Output: "ltcdscmmntyfrcdrs"


Example 2:


Inpu...]]></description><category></category></item><item><title><![CDATA[Leetcode [724, 747,66] Array专题 (1)]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/95954544</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/95954544</guid><author>YuanTheCoder</author><pubDate>Mon, 15 Jul 2019 13:12:46 +0800</pubDate><description><![CDATA[Operations in Array


// "static void main" must be defined in a public class.
public class Main {
    public static void main(String[] args) {
        // 1. Initialize
        int[] a0 = new int[5];
...]]></description><category></category></item><item><title><![CDATA[Leetcode 867. Transpose Matrix, Java解法]]></title><link>https://blog.youkuaiyun.com/YuanTheCoder/article/details/95925670</link><guid>https://blog.youkuaiyun.com/YuanTheCoder/article/details/95925670</guid><author>YuanTheCoder</author><pubDate>Sun, 14 Jul 2019 21:11:57 +0800</pubDate><description><![CDATA[Given amatrixA, return the transpose ofA.

The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix.

Example 1:


Input: [[1,2,3]...]]></description><category></category></item></channel></rss>