Skip to main content

Practice · 3 of 3

Longest Video

CHALLENGE
Difficulty: beginner+25 XP

Given the Material model in scope, implement const Material* longest_video(const Material *ms, int n) returning the VIDEO record with the most minutes, or NULL when there are none.

Back to lesson: Practice: Model Building