Skip to content

Conversation

minhazalam
Copy link

This will fix below issue in the code.
If users table have same names but different user_id then this will group on the basis of name which will fail

  1. Users =
    | id | name |
    | -- | ----- |
    | 1 | Alice |
    | 2 | Bob |
    | 3 | Alex |
    | 19 | Alice |

  2. Rides =
    | id | user_id | distance |
    | -- | ------- | -------- |
    | 1 | 1 | 120 |
    | 2 | 2 | 317 |
    | 3 | 3 | 222 |
    | 4 | 7 | 100 |
    | 5 | 13 | 312 |
    | 9 | 7 | 230 |

If User names are same with different user ids, it will fail some test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant