← Questions

Count subarrays with product less than K, then equal to K, then list them

0
AppleCodingLast asked Nov 2026

A coding interview question asked in Apple's technical phone screen, last asked Nov 2026. It tests sliding window, array and two pointers.

You get an array of positive integers and an integer k. Count the contiguous, non-empty subarrays whose product is strictly less than k.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Technical phone screen · Last asked Nov 2026

What it tests

sliding window · array · two pointers

Your code and the AI tutor open when you unlock this question.