Question: Write a recursive function in ML that reads an input list of integers (0-9) and returns True, if the list contains a sequence of 325

Write a recursive function in ML that reads an input list of integers (0-9) and returns True, if the list contains a sequence of 325 anywhere in the list as a sequence of CONSECUTIVE elements. For example, [7, 3, 2, 9, 5] should return False. Ratings will be given.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!