Find for how many consecutive days all employees were present.
Unlock detailed company stats for this questionUpgrade
Given a List<String> of attendance records and an integer m (the number of employees), find for how many consecutive days all employees were present. Example: m = 3, n = 5 days, records ['YYY', 'YYY', 'YNN', 'NNN', 'YNY'] gives 2, because all three employees were present on the first two days.
Format · Live coding on HackerRank.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
