subject
Computers and Technology, 19.04.2021 14:00 Frankia

Lists of lists of type are suitable for implementing another algorithm. for sorting - sorting with firmware. Suitable for cases where elements
we have to sort, they are not given to us at the beginning, but we get new ones from time to time
elements that must enter the appropriate position between the already sorted elements.
Respond. To do this, when a new element arrives, we find the index of the first element in the loop.
a larger item sorted by it and insert a new item in its place. Work
the basic algorithm is correct, we need to process the first element separately and complete
execution of the program if the number n of elements is 1.

Stages:
▪ Enter the length of the sheet using the keyboard.
▪ Cycle of traversing the sheet and entering data into it, and if the length consists of
one element to complete the program
▪ Loop to traverse the sheet, starting at the second element to find the index
the first is greater than the entered element
▪ If the index found is equal to the length of the list, insert the desired value
▪ Otherwise, insert the desired value instead of the found element.

Please help me, it's important

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
Animations and transitions are added from the
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Lists of lists of type are suitable for implementing another algorithm. for sorting - sorting with...
Questions
question
Mathematics, 12.09.2021 23:30
question
Mathematics, 12.09.2021 23:30
question
Mathematics, 12.09.2021 23:30
question
Mathematics, 12.09.2021 23:30
Questions on the website: 13722363