Count Number of Nice Subarrays at Roblox
Medium74.8% acceptance
This problem has 75.0% frequency at Roblox.
Problem Description
Given an array of integers `nums` and an integer `k`. A continuous subarray is called **nice** if there are `k` odd numbers on it. Return _the number of**nice** sub-arrays_.
Read full problem and hintsTopics
Also asked at 8 companies
More Roblox Questions
Reorganize StringMediumTask SchedulerMediumText JustificationHardMaximize Distance to Closest PersonMediumNumber of Ways to Wear Different Hats to Each OtherHard
View all Roblox questions