Skip to content

[Fix] Leetcode Test Case Failed #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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