Question: An example of a bumpy sequence is 2, 4, -1, 9, 0, 5, -2. On the other hand, the sequence 2, 4, 7, 3, 10,
An example of a bumpy sequence is 2, 4, -1, 9, 0, 5, -2. On the other hand, the sequence 2, 4, 7, 3, 10, 5, 5 is not bumpy because the differences between the three consecutive elements 2, 4, 7 do not alternate. Two 5's also show up at the end of the sequence causing the consecutive difference to be zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
