0
help me solve the following algorithm. In this case, it is a vector of 20 positions. My doubt is what values would be stored in vector A?
for (i=1, A[0]=1; i< A.lenght; i++)
A[i] = A[i-1]*2;
Correct answer:
a - Type 3i to i elements
b - Type 2i elements for i
c - Type I2 elements for i
d - Type ii elements for i
Could you explain to me what the correct answer is?
B and C are not the same answer?
– user28595
this is a question that fell in a past contest.
– Luis
The second and third are the same, and the two are the right ones. There’s something wrong there
– user28595
But B and C are the same.
– Jéf Bueno
Unless the C is
Elementos do tipo i² para i
, which is something completely different from what it is now.– user28595