Loading...
Is this your company?
in an array with 10, 22, 13 . output 10, 32, 45,
Anonymous
int in[3] = {10, 22, 13}; int out[3]; int tmpSum = 0; for(int i = 0; i < 3; i++) { tmpSum += in[i]; out[i] = tmpSum; } return out;
Int in[]= {10,22,13}; Int tmpsum=0; For(int I=0;I
basically just keep summing the loops. He wanted to se how fast I could come up with a workable solution. Very simple.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.