随笔分类 - 算法实例
摘要: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
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号