<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>排序 on Prime&#39;s blog</title>
    <link>https://www.mayuan.site/tags/%E6%8E%92%E5%BA%8F/</link>
    <description>Recent content in 排序 on Prime&#39;s blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 05 Dec 2019 09:59:35 +0800</lastBuildDate>
    
	<atom:link href="https://www.mayuan.site/tags/%E6%8E%92%E5%BA%8F/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>排序</title>
      <link>https://www.mayuan.site/post/%E7%AE%97%E6%B3%95/%E6%8E%92%E5%BA%8F/</link>
      <pubDate>Thu, 05 Dec 2019 09:59:35 +0800</pubDate>
      
      <guid>https://www.mayuan.site/post/%E7%AE%97%E6%B3%95/%E6%8E%92%E5%BA%8F/</guid>
      <description>排序算法 插入排序 1 2 3 4 5 6 7 8 def insertion_sort(array): for i in range(1,len(array)): key=array[i] j=i-1 while j&amp;gt;=0 and array[j]&amp;gt;key: array[j+1]=array[j] j-=1 array[j+1]=key 插入排序只要记得就想扑克牌一样就好了，没什么大的问题。这里用了比较经典的思路，</description>
    </item>
    
  </channel>
</rss>