Skip to content

Issue: Improve Handling of Users with Zero Score in Leaderboard Ranking #93

@Yashaswini-K-P

Description

@Yashaswini-K-P

Description

Currently, users with 0 solved problems appear in the leaderboard and are assigned a rank. When multiple users have the same score (0), the ranking becomes arbitrary and does not provide meaningful ordering.

This makes the leaderboard less useful when many users have no activity yet

Current Behavior

-->Users with 0 solves are included in the leaderboard
-->They are assigned ranks even when all scores are equal
-->Ranking order among zero-score users appears arbitrary

Expected Behavior

-->Users with 0 solves should not be ranked in a competitive way
OR
-->They should be grouped under a separate section like:
“No activity yet”
If included in leaderboard, ordering should be stable and non-competitive

Suggested Fix Options

Choose one consistent approach:

*Option 1 (Recommended):
Exclude 0-score users from ranking
Show them separately under “No activity yet”

*Option 2:
Keep them in leaderboard but:
Do not assign rank numbers
Sort them by a stable fallback (username / join time).

Can u assign it to me, so that i can work on it.

Metadata

Metadata

Labels

FrontendTask mainly involving frontendlevel:intermediateIndicates the difficultytype:featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions