I’m making this easy & basic so if you need to use it, feel free!
Dear Future me, It feels a little strange to be writing a letter to my future self, but it’s also rather exciting! At present I am very interested in sports and am sure this is a hobby that has proved beneficial because I can hit a home run.
So tell me have things changed a lot? Do we still have a lot of restaurants? Has Artificial Intelligence proved to be taking over the world? You must be so used to social distancing while we struggle to figure out a cure.
Is our pet fish doing well or have you replaced it with robot? Ha! Ha! It’s so much easier, right?! How is your preparation for the new job? Must be really nice to be an adult! Have you changed our hair? Maybe our style? Am sure things have turned out well for you in 2030. Great talking to you! Stay safe.It’s been nice writing to you Hope this letter brings back old memories…
Sincerely, past you.
Answer:
a. input={4,4}
b. input={3,6,6}
c. input={7,8,8,4}
d. input={5,7,7,4,4}
e input={4,6,6,7,9,9}
Explanation:
First understanding the method in the method we are iterating over array upto the second last element and in the loop we are checking that the current element is less than then next array element if it is less then we are assigning the value of next element to the current element.So the outputs are stated above according to the method execution.
Answer:
Thank you!! Happy thanksgiving!
Explanation:
The answer is Ada Lovelace