<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[moyefly的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/moyefly</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; moyefly]]></copyright><item><title><![CDATA[反转链表]]></title><link>https://blog.csdn.net/moyefly/article/details/114295540</link><guid>https://blog.csdn.net/moyefly/article/details/114295540</guid><author>moyefly</author><pubDate>Tue, 02 Mar 2021 22:02:40 +0800</pubDate><description><![CDATA[反转一个单链表。

示例:


输入: 1-&gt;2-&gt;3-&gt;4-&gt;5-&gt;NULL
输出: 5-&gt;4-&gt;3-&gt;2-&gt;1-&gt;NULL

在leetcode上遇到的这个题，解题的两个方法感觉都特别巧妙

方法一：迭代

在遍历链表的时候，让当前链表的next指向前一个元素，需要事先定义一个空节点，为第一个元素指向，每次需要一个临时节点存储下一个节点。


public ListNode reverseList(ListNode head) {
      ]]></description><category></category></item><item><title><![CDATA[redis初探]]></title><link>https://blog.csdn.net/moyefly/article/details/114258338</link><guid>https://blog.csdn.net/moyefly/article/details/114258338</guid><author>moyefly</author><pubDate>Mon, 01 Mar 2021 11:06:38 +0800</pubDate><description><![CDATA[# Redis
 1. 概念： redis是一款高性能的NOSQL系列的非关系型数据库


  1.1.什么是NOSQL
   NoSQL(NoSQL = Not Only SQL)，意即“不仅仅是SQL”，是一项全新的数据库理念，泛指非关系型的数据库。
   随着互联网web2.0网站的兴起，传统的关系数据库在应付web2.0网站，特别是超大规模和高并发的SNS类型的web2.0纯动态网站已经显得力不从心，暴露了很多难以克服的问题，而非关系型的数据库...]]></description><category></category></item><item><title><![CDATA[Ajax和json学习]]></title><link>https://blog.csdn.net/moyefly/article/details/114226879</link><guid>https://blog.csdn.net/moyefly/article/details/114226879</guid><author>moyefly</author><pubDate>Sun, 28 Feb 2021 15:53:35 +0800</pubDate><description><![CDATA[# AJAX：
 1. 概念： ASynchronous JavaScript And XML 异步的JavaScript 和 XML
  1. 异步和同步：客户端和服务器端相互通信的基础上
   * 客户端必须等待服务器端的响应。在等待的期间客户端不能做其他操作。
   * 客户端不需要等待服务器端的响应。在服务器处理请求的过程中，客户端可以进行其他的操作。

   Ajax 是一种在无需重新加载整个网页的情况下，能够更新部分...]]></description><category></category></item><item><title><![CDATA[jQuery高级]]></title><link>https://blog.csdn.net/moyefly/article/details/114222720</link><guid>https://blog.csdn.net/moyefly/article/details/114222720</guid><author>moyefly</author><pubDate>Sun, 28 Feb 2021 14:34:22 +0800</pubDate><description><![CDATA[## JQuery 高级
 1. 动画
  1. 三种方式显示和隐藏元素
   1. 默认显示和隐藏方式
    1. show([speed,[easing],[fn]])
     1. 参数：
      1. speed：动画的速度。三个预定义的值("slow","normal", "fast")或表示动画时长的毫秒数值(如：1000)
    ...]]></description><category></category></item><item><title><![CDATA[jQuery基础学习]]></title><link>https://blog.csdn.net/moyefly/article/details/114212052</link><guid>https://blog.csdn.net/moyefly/article/details/114212052</guid><author>moyefly</author><pubDate>Sun, 28 Feb 2021 10:47:21 +0800</pubDate><description><![CDATA[# JQuery 基础：
 1. 概念： 一个JavaScript框架。简化JS开发
  * jQuery是一个快速、简洁的JavaScript框架，是继Prototype之后又一个优秀的JavaScript代码库（或JavaScript框架）。jQuery设计的宗旨 是“write Less，Do More”，即倡导写更少的代码，做更多的事情。它封装JavaScript常用的功能代码，提供一种简便的JavaScript设计模式，优 化HTML文档操作、事件处理、动画设计和Aj...]]></description><category></category></item><item><title><![CDATA[1052 Linked List Sorting]]></title><link>https://blog.csdn.net/moyefly/article/details/113839198</link><guid>https://blog.csdn.net/moyefly/article/details/113839198</guid><author>moyefly</author><pubDate>Wed, 17 Feb 2021 22:30:55 +0800</pubDate><description><![CDATA[题目链接：https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464

1052 Linked List Sorting (25 分)

A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an i]]></description><category></category></item><item><title><![CDATA[PAT刷题——1032 Sharing]]></title><link>https://blog.csdn.net/moyefly/article/details/113831241</link><guid>https://blog.csdn.net/moyefly/article/details/113831241</guid><author>moyefly</author><pubDate>Wed, 17 Feb 2021 09:45:15 +0800</pubDate><description><![CDATA[题目链接：https://pintia.cn/problem-sets/994805342720868352/problems/994805460652113920

1032 Sharing (25 分)

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same su]]></description><category></category></item><item><title><![CDATA[PAT刷题——1060 Are They Equal]]></title><link>https://blog.csdn.net/moyefly/article/details/113776630</link><guid>https://blog.csdn.net/moyefly/article/details/113776630</guid><author>moyefly</author><pubDate>Wed, 10 Feb 2021 10:29:35 +0800</pubDate><description><![CDATA[题目链接：https://pintia.cn/problem-sets/994805342720868352/problems/994805413520719872

1060 Are They Equal (25 分)

If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as0.123×10​.]]></description><category></category></item><item><title><![CDATA[PAT刷题——1059质因子分解]]></title><link>https://blog.csdn.net/moyefly/article/details/113136590</link><guid>https://blog.csdn.net/moyefly/article/details/113136590</guid><author>moyefly</author><pubDate>Mon, 25 Jan 2021 20:24:08 +0800</pubDate><description><![CDATA[题目链接：https://pintia.cn/problem-sets/994805342720868352/problems/994805415005503488

059Prime Factors(25分)

Given any positive integerN, you are supposed to find all of its prime factors, and write them in the formatN=p​1​​​k​1​​​​×p​2​​​k​2​​​​×⋯×p​m...]]></description><category></category></item><item><title><![CDATA[PAT刷题——黑洞数字]]></title><link>https://blog.csdn.net/moyefly/article/details/113055103</link><guid>https://blog.csdn.net/moyefly/article/details/113055103</guid><author>moyefly</author><pubDate>Sat, 23 Jan 2021 16:13:16 +0800</pubDate><description><![CDATA[PAT刷题——黑洞数字

题目链接：https://pintia.cn/problem-sets/994805342720868352/problems/994805400954585088

                                                          1069The Black Hole of Numbers(20分)

For a...]]></description><category></category></item><item><title><![CDATA[PAT甲级刷题——1093有多少个PAT]]></title><link>https://blog.csdn.net/moyefly/article/details/112985516</link><guid>https://blog.csdn.net/moyefly/article/details/112985516</guid><author>moyefly</author><pubDate>Fri, 22 Jan 2021 15:48:05 +0800</pubDate><description><![CDATA[PAT甲级刷题——1093

https://pintia.cn/problem-sets/994805342720868352/problems/994805373582557184

这个题是乙级的一个题

https://pintia.cn/problem-sets/994805260223102976/problems/994805282389999616

1093Count PAT's(25分)

The stringAPPAPTcontains twoPAT's as substri...]]></description><category></category></item><item><title><![CDATA[PAT甲级刷题——1025（利用结构体排序）]]></title><link>https://blog.csdn.net/moyefly/article/details/112960680</link><guid>https://blog.csdn.net/moyefly/article/details/112960680</guid><author>moyefly</author><pubDate>Thu, 21 Jan 2021 16:27:42 +0800</pubDate><description><![CDATA[PAT甲级刷题——利用结构体排序

https://pintia.cn/problem-sets/994805342720868352/problems/994805474338127872

1025PAT Ranking(25分)

Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supp..]]></description><category></category></item><item><title><![CDATA[二叉树的遍历的建立]]></title><link>https://blog.csdn.net/moyefly/article/details/81502835</link><guid>https://blog.csdn.net/moyefly/article/details/81502835</guid><author>moyefly</author><pubDate>Wed, 08 Aug 2018 10:50:32 +0800</pubDate><description><![CDATA[ 三种还原二叉树的方法

1. 


struct node *creat()//先序遍历有空的情况还原二叉树
{
    struct node *p;
    char c;
    c=s[i++];
    if(c==',')
        return NULL;
    else
    {
        p=(struct node *)malloc(sizeof(struct...]]></description><category></category></item><item><title><![CDATA[数据结构上机测试1：顺序表的应用]]></title><link>https://blog.csdn.net/moyefly/article/details/81286599</link><guid>https://blog.csdn.net/moyefly/article/details/81286599</guid><author>moyefly</author><pubDate>Mon, 30 Jul 2018 15:59:14 +0800</pubDate><description><![CDATA[ 

Problem Description

在长度为n（n&amp;lt;1000)的顺序表中可能存在着一些值相同的“多余”数据元素（类型为整型），编写一个程序将“多余”的数据元素从顺序表中删除，使该表由一个“非纯表”（值相同的元素在表中可能有多个）变成一个“纯表”（值相同的元素在表中只能有一个）。

Input

第一行输入表的长度n；
第二行依次输入顺序表初始存放的n个元素值。

Output

...]]></description><category></category></item><item><title><![CDATA[皮卡丘的party]]></title><link>https://blog.csdn.net/moyefly/article/details/80357087</link><guid>https://blog.csdn.net/moyefly/article/details/80357087</guid><author>moyefly</author><pubDate>Thu, 17 May 2018 21:22:06 +0800</pubDate><description><![CDATA[Problem Description去年冬天，皮卡丘认识了大家，因此皮卡丘决定给大家举办一场欢快的party。这次party最大的活动就是宝可梦对战大赛，这次比赛是一场淘汰赛，由2^n位训练家进行n轮1v1的对战。每轮对战后，胜者晋级，败者淘汰，最终决出冠军。训练家使用的宝可梦分为水、火、草三种属性，其中火属性宝可梦可以战胜草属性宝可梦，水属性宝可梦可以战胜火属性宝可梦，草属性宝可梦可以战胜水属...]]></description><category></category></item><item><title><![CDATA[移动小球]]></title><link>https://blog.csdn.net/moyefly/article/details/80329960</link><guid>https://blog.csdn.net/moyefly/article/details/80329960</guid><author>moyefly</author><pubDate>Tue, 15 May 2018 21:56:26 +0800</pubDate><description><![CDATA[Problem Description

给你n个小球，从左到右编号依次为1,2,3,4,5,6.........n排成一行。现在有以下2种操作：A x y表示把编号为x小球移动到编号为y的小球的左边(和y相邻)。Q x为询问编号为x的小球左边的球号，如果x左边没有小球的话输出&quot;cyk666&quot;。

Input

第一行输入一个T，表示有T组测试数据。（1&amp;lt;=T&amp;lt;=100）

随后每一组...]]></description><category></category></item><item><title><![CDATA[简单枚举类型——植物与颜色]]></title><link>https://blog.csdn.net/moyefly/article/details/79737424</link><guid>https://blog.csdn.net/moyefly/article/details/79737424</guid><author>moyefly</author><pubDate>Thu, 29 Mar 2018 09:22:42 +0800</pubDate><description><![CDATA[Problem Description 请定义具有red, orange, yellow, green, blue, violet六种颜色的枚举类型color，根据输入的颜色名称，输出以下六种植物花朵的颜色：Rose(red), Poppies(orange), Sunflower(yellow), Grass(green), Bluebells(blue), Violets(violet)。如果...]]></description><category></category></item><item><title><![CDATA[共用体练习]]></title><link>https://blog.csdn.net/moyefly/article/details/79736020</link><guid>https://blog.csdn.net/moyefly/article/details/79736020</guid><author>moyefly</author><pubDate>Wed, 28 Mar 2018 23:29:05 +0800</pubDate><description><![CDATA[Problem Description 给定n和m，接下来有n个描述，每个描述包含一个类型标志和一组相应的数据。类型标志共3种：INT DOUBLE STRING，然后对应一组相应的数据。紧接着有m个询问，每个询问仅包含一个整数x，要求输出第x个描述对应的数据（STRING类型保证不含空格，每组对应STRING数据不会超过19个字符）。 Input输入的第一行为两个整数，n和m (n&amp;lt;=10...]]></description><category></category></item><item><title><![CDATA[选夫婿1]]></title><link>https://blog.csdn.net/moyefly/article/details/79735311</link><guid>https://blog.csdn.net/moyefly/article/details/79735311</guid><author>moyefly</author><pubDate>Wed, 28 Mar 2018 22:26:10 +0800</pubDate><description><![CDATA[Problem Description    倾国倾城的大家闺秀潘小姐要选夫婿啦！武林中各门各派，武林外各大户人家，闻讯纷纷前来，强势围观。前来参与竞选的男生藏龙卧虎，高手云集，才子遍布，帅哥纷纭，更不乏富二代，官二代，可谓声势空前。    每个人参与竞选的帅哥除了进行一段激情洋溢的求婚演讲以外，还要报上自己姓名、身高和体重，以及个人简历。最后再进行文武选拔，最后夺魁者方能得到潘小姐的芳心。   ...]]></description><category></category></item><item><title><![CDATA[选票统计]]></title><link>https://blog.csdn.net/moyefly/article/details/79734225</link><guid>https://blog.csdn.net/moyefly/article/details/79734225</guid><author>moyefly</author><pubDate>Wed, 28 Mar 2018 21:31:25 +0800</pubDate><description><![CDATA[ StatisticProblem Description某校学生会主席由全校学生投票选举产生，共有ｍ名候选人报名参选，编号为1到ｍ（0＜ｍ＜1000），全校有ｎ名学生（0＜ｎ＜30000），每人都可以投票。但每人只能投一票，每票只能选1名候选人。请你设计一个程序能够统计出哪个候选人得票最高，得了多少票。不会出现得票数相同的情况。Input第一行输入候选人数ｍ和学生数ｎ，以空格分开；下面依次输入每...]]></description><category></category></item></channel></rss>