Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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, 'N

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions