Exercise 5.5 Widest Fragment in a Sequence Write a program to read a sequence of integer numbers ending with the number 0. Determine the length of the widest fragment (consecutive sub-sequence) where...


Exercise 5.5 Widest Fragment in a Sequence<br>Write a program to read a sequence of integer numbers ending with the number 0. Determine<br>the length of the widest fragment (consecutive sub-sequence) where all the elements are equal<br>to each other.<br>Sample test cases:<br>Test case ID<br>Inputs<br>Outputs<br>3<br>1<br>1.<br>5.<br>2345O<br>11222N OM<br>

Extracted text: Exercise 5.5 Widest Fragment in a Sequence Write a program to read a sequence of integer numbers ending with the number 0. Determine the length of the widest fragment (consecutive sub-sequence) where all the elements are equal to each other. Sample test cases: Test case ID Inputs Outputs 3 1 1. 5. 2345O 11222N OM

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here