Computers and Technology

Select the correct text in the passage. Jessica has written the following insertion sort algorithm. In which line is she using the method that is inserting the values?
public class InsertionSort
private static void insertElem (int vals, int bottomPos)
int temp,
temp vals[bottomPos];
for (int i bottomPos 10, i
if (temp vals[I]) vals[i+1]temp return
vals[i+1]vals[i];
vals[0]temp;
return
public static void insSort(int vals)
for (int i 1, i insertElem(vals, i);
for (int k-0, k< vals. length, k++)
if (k < vals. length-1)
System. out. print(vals[k] +"");
else (
System. out. printin(vals[k]):
return
temp vals[bottomPos];
vals[i+1] -temp;
vals[i+1] - vals[i];
insertElem(vals, i);
System. out. println(vals[k]);

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, karleebowling316
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 24.06.2019 09:30, bhadd4385
What is the definition of digital literacy?
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, zlittleton2008
Which feature of a blog to restore and retrieve older post
Answers: 3
Do you know the correct answer?
Select the correct text in the passage. Jessica has written the following insertion sort algorithm....

Questions in other subjects:

Konu
Mathematics, 18.02.2021 04:30
Konu
Mathematics, 18.02.2021 04:30