Write a C function with the following prototype: int searchSequence (int vet[], int n, int m) ; that receives as parameters an array of integers vet and its dimension n, as well as a positive integer...

This is not a graded question so please don't disregard it as if it is.Thank you in advance professor! Note: Everything should be coded in C AND NOT C++Write a C function with the following prototype:<br>int searchSequence (int vet[], int n, int m) ;<br>that receives as parameters an array of integers vet and its dimension n, as well as a positive integer value m. The function<br>should search for a sub-sequence of m strictly monotonically increasing values in vet. In case of success, the function<br>should returm the initial index of the first occurrence of such a sequence in the vector. Otherwise, it should return the value -1.<br>Example<br>If vet contains the sequence 1, 2, 0, 5, -1, 0, 5, 6, 13, 4, 7, 9, 10, 22 and m is equal to 4, the function will<br>return 4.<br>

Extracted text: Write a C function with the following prototype: int searchSequence (int vet[], int n, int m) ; that receives as parameters an array of integers vet and its dimension n, as well as a positive integer value m. The function should search for a sub-sequence of m strictly monotonically increasing values in vet. In case of success, the function should returm the initial index of the first occurrence of such a sequence in the vector. Otherwise, it should return the value -1. Example If vet contains the sequence 1, 2, 0, 5, -1, 0, 5, 6, 13, 4, 7, 9, 10, 22 and m is equal to 4, the function will return 4.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here