Leetcode 3605. Minimum Stability Factor of Array
Given an array nums and an allowance of at most maxC arbitrary element replacements, a subarray is "stable" if its gcd (HCF) ≥ 2; compute the minimum possible length of the longest stable subarray (or 0 if none) achievable after up to maxC modifications.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.