โ† FactSet questions

First Positive Element in Window

Filed under FactSet

Given an array of integers and a sliding window size k, find the first positive element in every sliding window of size k. If no positive element exists in a window, output 0.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related FactSet questions

Collected from public candidate posts and coding forums. Updated Nov 2026.