菱纱梦

导航

2014年9月16日 #

各种排序算法总结

摘要: 1:合并排序 合并排序算法使用分治策略实现对n个元素进行排序的算法。其基本思想是:将待排序元素分成大小大致相同的两个子集合,分别对两个子集合进行排序,最后总将排好序的子集合合并成所要求的排好序的集合。算法描述如下:void MergeSort(Typr a[],int left,int right... 阅读全文

posted @ 2014-09-16 11:27 菱纱梦 阅读(185) 评论(0) 推荐(0) 编辑

Unique Paths II <leetcode>

摘要: Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i... 阅读全文

posted @ 2014-09-16 10:14 菱纱梦 阅读(214) 评论(0) 推荐(0) 编辑