Data Structures & AlgorithmsModerateICPC regional · Amazon SDE OA
How many positive divisors of 2^5 * 3^2 * 7 are odd?
- A. 24
- B. 36
- C. 6
- D. 35
Correct answer: C. 6
Odd divisors avoid the factor 2, so they are the divisors of 3^2 * 7, of which there are (2+1)(1+1) = 6. The total divisor count 6 * 3 * 2 = 36 is a different quantity.
Practise more Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questionsArrays, Strings, Linked Lists, Stacks, Queues and Hashing: notes and key points
More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions
- How many non-empty contiguous subarrays of [3, 3, 1, 2, 2, 1] have bitwise XOR equal to 0?
- How many distinct palindromic substrings (as strings, not positions) does "aaaa" have?
- A road of length 24 has fuel stations at kilometres 3, 7, 9, 14, 17, 22. The car starts at 0 and has range 8 km per tank (it refuels fully…
- Buildings of heights [4, 1, 6, 2, 5, 3] are viewed from the right. How many are visible (strictly taller than every building to their…
- What is the smallest positive integer m such that the sum of ceil(ai / m) over a = [7, 11, 12] is at most 9?
- How many ordered pairs (x, y) with 1 <= x, y <= 12 have x y divisible by 12?