Maximum revenue from a given ID

Hard

Suppose you're given the following table, showing revenue values associated with different IDs. Note how an ID can have multiple revenue values:

Table: earnings

| id | revenue | content |...

Sign in to InterviewQs to view this question

Or

New to InterviewQs? Sign up now.

By proceeding, you agree to our Terms and Conditions and Privacy Policy.

Loading editor...