79590949

Date: 2025-04-24 15:18:05
Score: 1
Natty:
Report link

Use np.newaxis

    c = a * b[:, np.newaxis]

You don't need to allocate space for c in advance btw.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frede