Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: Given two lists, write a program with a function that merges these two lists in descending order. Your main program will allow the user

Problem: Given two lists, write a program with a function that merges these two lists in descending order. Your main program will allow the user to enter two lists of numbers and end the program by inputting a blank line for list 1. You are not allowed to concatenate the two lists into a new list and then call the built-in sort() function to sort the new list in descending order. But you are allowed to sort the two lists in descending order before merge. Dont worry about the complexity of the merging algorithm.
List 1: 1336
List 2: 145
[6,5,4,3,3,1,1]
List 1: 100
List 2: 113
[100,3,1,1]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions