Yesterday I gave the Quince OA, and there were 2 coding questions.
We were given an array ranges, where the sprinkler at index i covers:
[i - ranges[i], i + ranges[i]]
We had to find the minimum number of sprinklers required to cover the complete range.
This was basically the exact same as:
LeetCode 1326 — Minimum Number of Taps to Open to Water a Garden
We were given:
str1str2kThe problem involved forming/repeating str2 k times as a subsequence of str1, with deletion/subsequence operations involved.
This was essentially:
LeetCode 2014 — Longest Subsequence Repeated K Times
So overall, the OA questions were very close to: