随笔分类 -  算法实例

摘要:int [] array = new int[]{69,3,52,87,32,14,66,1,89}; int temp = 0 ; for (int i = 0 ; i < array.Length - 1 ; i++) { for (int j = i + 1 ; j < array.Lengt 阅读全文
posted @ 2018-11-10 17:51 冬夜的火 阅读(102) 评论(0) 推荐(0)
摘要:1 public class MainClass 2 { 3 public static void Main() 4 { 5 Console.WriteLine(Foo(30)); 6 } 7 public static int Foo(int i) 8 { 9 if (i 0 && i <= 2) 12 return 1; 13 el... 阅读全文
posted @ 2018-11-10 17:42 冬夜的火 阅读(685) 评论(0) 推荐(0)