Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a file named p2.lisp that contains a Common LISP function named lins, which accepts a list of real values a 0 through a n

Write a file named p2.lisp that contains a Common LISP function named lins, which accepts a list of real values a0 through an, and returns the sorted list in descending order using an insertion sort. Note that there may be from 0 (zero) to an arbitrarily large number of real numbers in the list, that any value in the list may appear any number of times up to the number of entries in the list. You must return a list containing the real numbers list as a sorted list.

The only parameter for the function is the list of real numbers to be sorted. Again, there may be an empty list passed, so you need to handle an empty list correctly (by returning an empty list).

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions