摘要: 链接:http://blog.csdn.net/zhang20072844/article/details/10286997 阅读全文
posted @ 2016-11-05 22:01 mximo 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 输入一个数组,输出除当前元素外其他元素的乘积数组 一般是算left,right数组然后相乘,时间复杂度o(n),空间复杂度o(n) 好的方法如下 int *cal(int *input,int n) { int i; int *result = new int [n]; result[0] = 1; 阅读全文
posted @ 2016-11-05 11:42 mximo 阅读(1387) 评论(0) 推荐(0) 编辑