Suppose list1 is a vector and list2 is a LinkedList. Both contain 1 million double values. Analyze the following code: for (int i = 0; i < list1. size (); i++) sum + = list1[i]; for (int i = 0; i < list2. getSize (); i++) sum + = list2. get (i);
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Suppose list1 is a vector and list2 is a LinkedList. Both contain 1 million double values. Analyze the following code: for (int i = 0; i < ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Suppose list1 is a vector and list2 is a LinkedList. Both contain 1 million double values. Analyze the following code: for (int i = 0; i < list1. size (); i++) sum + = list1[i]; for (int i = 0; i < list2. getSize (); i++) sum + = list2. get (i);