Premium problem158. Predict Result dtypes Under NEP 50

Hard Locked

Return the dtype names of, in order:

  • u8 + 100
  • u8 + np.uint8(100)
  • f32 + 1.0
  • f32 + np.float64(1.0)
  • f32 + np.array(1.0)
  • i32 + True
  • i32 + np.int64(1)
  • i32 * 2.0

Input

u8 = [1]
f32 = [1.]
i32 = [1]

Output

('uint8', 'uint8', 'float32', 'float64', 'float64', 'int32', 'int64', 'float64')

Premium problem

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

Implement solve(...)