Premium problem156. Which Reductions Silently Change dtype

Medium Locked

Return the dtype names of, in order:

  • i8.sum()
  • u8.prod()
  • i32.cumprod()
  • f32.sum()
  • b.sum()
  • b + b
  • i8.mean()
  • f32.mean()

Input

i8 = [1 2]
u8 = [3 4]
i32 = [5 6]
f32 = [1. 2.]
b = [ True False]

Output

('int64', 'uint64', 'int64', 'float32', 'int64', 'bool', 'float64', 'float32')

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)