</>OfferRetriever
DashboardDiscuss
NEW
Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
$10.42$7.50/mo

--

:

--

:

--

:

--

Get this deal
Back to CodeSignal OAs Questions

OA [CodeSignal] Shortest Good Subarray

Medium

Given an array arr and an integer k, a subarray is called good if it contains at least k distinct integers.

Return the length of the shortest good subarray. If no such subarray exists, return -1. ...

Asked at:CodeSignal OAsUber

More CodeSignal OAs interview questions

All CodeSignal OAs interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.