Marks :10
: 4 | : 0
Shakuntala Devi once asked her students sitting in a lecture room. Determine the maximum number of seats occupied by students such that, number of consecutive seats occupied by women followed by number of consecutive seats occupied by mean are same.
Constraints :
1 <= R <= 10
1 <= S <= 10^5
First line contains R, number of rows. Each line i (where 0<= i < R) of R subsequent lines contains a String.
Return the integer which denotes the maximum length of continuous Women followed by Men, If it's not possible then return -1
2 WWMMMWMWWWMMMMWWWWWMMW MMWWW
6 -1
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.