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 hints

Topics

Also asked at 8 companies


More Roblox Questions

View all Roblox questions