6. Write a program that merges two lists. Let, L1 = [1, 2, 3] and L2 = [10, 20, 30] be two lists. Write a program that

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

6. Write a program that merges two lists. Let, L1 = [1, 2, 3] and L2 = [10, 20, 30] be two lists. Write a program that

Post by answerhappygod »

6. Write a program that merges two lists.
Let,
L1 = [1, 2, 3] and L2 = [10, 20, 30] be two lists. Write a
program that merges
L1 with L2. After the merge, the contents of L1 will be:
L1=[1, 2, 3, 10, 20, 30]
DO NOT USE LIBRARY FUNCTIONS.
Do not access list elements directly. Use basic list functions
instead
use retrieve(5), do
not use L[5]
use insert(1,1), do not use L[1] =1 etc.
7. Implement a basic List using an array. Implement INSERT,
FIND, RETRIEVE, REMOVE and DISPLAY operations as separate
functions.
Note: Solve this question within 2 hours, using C++ programing
language. I'll give you thumbs up.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply