摘要: public class SwapAB {public static void main(String[] args) {// 两种值交换的方式,用中间变量空间复杂度高于不用中间变量,但时间复杂度要低于不用中间变量.// 常规写两个值的交换int a = 100;int b = 200;System... 阅读全文
posted @ 2015-09-25 10:07 sawder 阅读(880) 评论(0) 推荐(0)