← ServiceNow questions
CodingReported in a candidate post, Jul 2025

Aggressive Cows

Filed under ServiceNow

Given an array of integers representing stall positions and an integer k (number of cows), assign k cows to the stalls such that the minimum distance between any two cows is as large as possible…

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 ServiceNow questions

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