C#算法
文章平均质量分 75
GreatYou
这个作者很懒,什么都没留下…
展开
-
C#求数组中和最大的连续子数组
class Program { //方法1 public static Dictionary maxSubArry(int[] a) { Dictionary di = new Dictionary(); //int[] di = new int[3]; i原创 2012-04-05 19:35:36 · 975 阅读 · 0 评论 -
C#求数组中前K大的数
class Program { public static int[] findArry(int[] ar,int k) { int[] arr = new int[k]; if (k > ar.Length) { arr = null;原创 2012-04-05 19:40:13 · 718 阅读 · 0 评论 -
C#求字符串中第一个只出现一次的字符
using System;using System.Collections.Generic;using System.Collections;//使用Hashtable时,必须引入这个命名空间using System.Linq;using System.Text;class Program {//方法1:public static char First原创 2012-04-05 19:26:08 · 1746 阅读 · 0 评论 -
C# 实现十大排序算法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SortAlgorithm{ class YHSort { /// /// 冒泡排序: /// 冒泡排序方法是最转载 2014-03-26 15:02:31 · 824 阅读 · 0 评论