← Microsoft questions
CodingReported in a candidate post, Aug 2018

Count valid cars for a date based on odd-even rules

Filed under Microsoft

Given an array of integer car numbers and a specific date, calculate how many cars are permitted to run based on the rule that odd-numbered cars operate on odd dates and even-numbered cars on even…

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

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