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