1. Create a sequence table, randomly generate 10 integers within 100, and complete them as required:
(1) Write a display function to display 10 integers in the sequence table on the screen;
(2) Write a search function, enter any integer from the keyboard to search in the sequence table, if found, return the position of the element in the sequence table, otherwise it prompts that there is no such element;
(3) Write the insert function, input the element to be inserted and the insertion position from the keyboard, and output the sequence table after the insertion;
(4) Write the delete function, input the position of the element to be deleted from the keyboard, and output the sequence table after deleting the position element.
2. There are two ordered singly linked lists L1 and L2, which store 10 data elements respectively. The algorithm is designed to merge the two singly linked lists, and the merged singly linked lists are required to be sorted in order, and the merged result is output.
There is nothing to say about the sequence table, the old basics are just a very common way of writing. When using random numbers, pay attention to whether the random number seed is the same every time.