Intuit Coding Round Question

Revision en1, by Lamentis, 2022-09-03 21:09:01

This question came in the recent summer internship drive on my campus but I could not solve it

Q)Array contains only 0 and 1. You are given two integers X and Y. Count how many subarrays have (count of 0) to (count of 1) equal to X: Y.

1<=N<=1e5 1<=X,Y<=1e5

Please help. Thanks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Lamentis 2022-09-03 21:09:01 315 Initial revision (published)