Meta Variants for Max Consecutive Ones 3 (LC1004)
2494
Jan 11, 2025
Mar 22, 2025

Hey y’all, I’ve seen Facebook’s Leetcode 1004 Max Consecutive Ones 3 be asked quite a lot over the months, but it’s tricky because they ask one of two variants: what if you were given the problem in the context of work days, holidays and PTO? IMO it’s more of a rephrasing than a variant.

Check it out (or not!):
LC 1004: Max Consecutive Ones 3

And for reference, here’s the previous post:

As a quick note, we’re starting to include the Python code in the repository since people have been requesting it.

Reference to the OG LC problem: https://leetcode.com/problems/max-consecutive-ones-iii/description/

Good luck on your phone screens & onsite loops.

Comments (5)