Microsoft logoMicrosoft
CodingMembers

Count Subarrays Whose Product Has an Odd Number of Divisors

Members only

Microsoft Core AI new-grad OA counting question about subarray products with a number-theory twist. The products overflow almost immediately at the given input size, so the problem only becomes tractable once the condition is restated.

SWE
math
prefix-sum
hashmap
bit-manipulation
medium
Frequency
Single report
Last asked
2026-11-04
Stage
oa

Members get

  • Full problem statement
  • Step-by-step approach
  • 3 common pitfalls
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...