3400 - 3499
Solutions categorised by Problem IDs
3411 - Maximum Subarray With Equal ProductsFind the longest product-equivalent subarray in O(n) using a sliding window and prime-factor bitmasks to efficiently detect shared factors.3420 - Count Non-Decreasing Subarrays After K OperationsMaintain the cost of making each window non-decreasing using a monotonic deque, shrinking from the right when the cost exceeds k.3471 - Find the Largest Almost Missing IntegerFind the largest integer appearing in exactly one length-k subarray by analyzing its possible window positions.