← Walmart questions
CodingHardReported in a candidate post, Oct 2024

Divisor queries on M and R

Filed under Walmart

Given a natural number M and Q queries specified by a type T and an integer R, answer: if T=1, count numbers dividing both M and R; if T=2, count numbers dividing M and multiple of R; if T=3, count…

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

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