c#【5】例子

166 阅读1分钟

1、冒泡排序 image.png

也可以使用Array.Sort(数组名)对数组进行排序。 image.png

2、有n(n<=100)个整数,已经按照从小到大顺序排列好,现在另外给一个整数x,请将该整数插入到序列中,并使新的序列仍然有序。 image.png

3、求连续最低气温天数判断 image.png

4、求一个字符串中可以拼凑'basketball'的最大数 (1) image.png

(2) image.png