Premium problem51. Position + Color Struct

Medium Locked

Create a structured array of size 10 holding:

  • a position (x, y)
  • a color (r, g, b)

Return a tuple (length, num_fields), where num_fields counts the leaf fields across both groups (5 in total).

Output

(10, 5)

Premium problem

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

Implement solve(...)