Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python3 please Maximum Streak A project manager wants to look at employee attendance data. Given that m employees are working on the project and the
Python3 please
Maximum Streak A project manager wants to look at employee attendance data. Given that m employees are working on the project and the manager has the record of the employees present on n days of the project, help him find the maximum number of consecutive days on which all employees were present and working on the project. As an example, there are m -3 employees and n-5 workdays to analyze. The attendance data strings, data-YYY YYY, YNN, YYN, YYNI. There are only two days, at the beginning of the period, where all workers are present. Using zero indexing for employees, employees 1 and 2 are absent on the third day, and employee 2 is also out on the fourth and fifth days. The maximum streak occurs at the beginning and is 2 days long Function Description Complete the maxStreak function in the editor below. The function must return an integer denoting the maximum number of consecutive days where all the employees of the project are present. maxStreak has the following parameters: m: an integer denoting the number of employees working on the project data: an array of n strings, where the value of each element datali] is a string where datalilli] denotes if the th employee is present on the ith day Constraints 1sms 10 . 1sns 100000 Each datalillil efY, 'NStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started