LeetCode Question · Feb 2022 · USA

Meta | OA | Number of subarrays

5 upvotes 2,679 views 4 replies

Question Details

Find number of contiguous subarrays in an array such that there are atleast k-elements which occur only once in that sub-array. Eg: Array: [1, 2, 1, 1] k: 2 Ans: 2 [1, 2], [2, 1] [1,...

Full Details

🔒

Unlock all Meta 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 meta interview for a swe role during the oa round reported in 2022.

It covers the following topics: Arrays .

Topics