摘要: 算法1的时间复杂度为O(N*N) 算法2为O(N) 一般时间复杂度看for循环,for循环嵌套时,时间复杂度乘法递增。 阅读全文
posted @ 2016-10-16 11:26 sunmarvell 阅读(990) 评论(0) 推荐(0) 编辑