1. Find the maximum integer in a list of integers. Example: (list-max ‘(1 11 3 7 9)) → 11 2. Searchanon-flat list to det

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

1. Find the maximum integer in a list of integers. Example: (list-max ‘(1 11 3 7 9)) → 11 2. Searchanon-flat list to det

Post by answerhappygod »

1. Find the maximum integer in a list of integers.
Example: (list-max ‘(1 11 3 7 9)) → 11
2. Searchanon-flat list to determine if a value is there.
Example: (in-list? ‘a ‘(7 “a” (b (c a)) () (d d))) → #t
3. Determine if a list of integers is in ascending order.
Example: (sorted? ‘(-1 1 2 3 7 9)) → #t
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply