0
I Need Some Help With Time Exceeded
Okay so basically I have this one c++ problem and it is driving me CRAZY. Could I please have some help :3 int lengthOfArray(int num){ int sum = 0; for(int i = num; num > 1; num / 10){ sum++; } return sum; } ^^ The above code returns Time Limit Exceeded, but I why? Some help ples
2 Answers
+ 1
Thank You!! Cheers mate