LeetCode
Question
·
Jul 2022
·
Los Angeles
Total binary subarrays with ratio x:y | OA | Intuit
13 upvotes
1,833 views
7 replies
Question Details
This question was asked in Intuit OA - Oncampus Given a binary array, find the total number of subarrays with the ratio of 0\'s and 1\'s equal to x:y. Constraints: n = arr.length 2<=n<=1e5 1<=x,y<=n Example:...
Full Details
🔒
Unlock all Intuit questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a intuit interview for a swe role during the oa round reported in 2022.
It covers the following topics: Arrays, Sliding Window, Two Pointers .