1 int candy(int* ratings, int ratingsSize) { 2 int *candys = NULL; 3 int resulte = 0; 4 5 candys = (int *)malloc(sizeof(int)*ratingsSize); 6 if (NULL == candys) 7 { 8 return 0; 9 } 10 candys[0] = 1; 11 for
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有