Input: arr[] = {1, 2, 3, 4, 5, 5, 5, 5, 5, 2, 2, 1, 1} Output: 5 Explanation: The subarray (5, 5, 5, 5, 5} has maximum lengt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Input: arr[] = {1, 2, 3, 4, 5, 5, 5, 5, 5, 2, 2, 1, 1} Output: 5 Explanation: The subarray (5, 5, 5, 5, 5} has maximum lengt

2nd Dec 2021, 9:29 AM
Naveen Kumar
Naveen Kumar - avatar
2 Answers
+ 8
Naveen Kumar , 1. not clear what the purpose of this post is 2. what is your question, your doubt or your issue? => please give us some more information. thanks!
2nd Dec 2021, 9:47 AM
Lothar
Lothar - avatar
+ 1
Please follow this guide on how we post a question https://www.sololearn.com/Discuss/333866/?ref=app
2nd Dec 2021, 10:51 AM
Ipang