Question: Question 1 ( 1 0 points ) Given an arithmetic sequence of numbers, check whether the given number aligns with the sequence or not. The
Question points
Given an arithmetic sequence of numbers, check whether the given number aligns with the sequence or not. The function takes four sequentially ordered numbers and searches for the query. Your task is to determine whether the query can be the next element of the sequence.
Contract
contract: isInSequence: nnumber nnumber nnumber nnumber querynumber
boolean
Examples
checkexpect isInSequence #False
checkexpect isInSequence #True
checkexpect isInSequence #True
You can only use this list of function:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
