Skip to content

Discrepancy in runtime rank returned from leetcode-cli and that shown in website #114

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
yaqihou opened this issue Jul 22, 2018 · 4 comments

Comments

@yaqihou
Copy link

yaqihou commented Jul 22, 2018

Problem Summary

The rank (that percentage) in runtime distribution in output of leetcode-cli is different from that value shown in leetcode website.

How to reproduce

(Only tried with python)
Submit any python script and the the percentage shown in the output "beats over XX %" would be different from the result found in submission details on leetcode website.

Environment

  • leetcode-cli version: 2.5.2
  • OS version: Ubuntu 16.04
  • Node version: 10.6.0
  • Npm version: 6.1.0

Thanks for this awesome tool!

@lostarchun
Copy link

Have the same issue in C++

@skygragon
Copy link
Owner

is the difference significant?

@ketankr9
Copy link

ketankr9 commented Dec 18, 2018

I too can confirm this, and the difference is significant.
For example:

$ commit
859.buddy-strings.cpp
  ✔ Accepted
  ✔ 23/23 cases passed (8 ms)
  ✔ Your runtime beats 1.45 % of cpp submissions

However, the website shows Your runtime beats 35.10 % of cpp submissions The absolute run time is correct (8ms here).

Image Link Here you can verify that the submission id is same in both desktop.

Edit: Added another instance.
Another instance: leetcode-cli shows 79.12% where as website shows 97.76%. Problem: 897.

$ leetcode version
2.6.1

@skygragon
Copy link
Owner

might be related to #156

smrook added a commit to smrook/leetcode-cli that referenced this issue Feb 3, 2019
mohitt added a commit to mohitt/leetcode-cli-old that referenced this issue Mar 26, 2019
Refactor runtime and memory percentile logic for fixing issue skygragon#114 an…
arthurzwl added a commit to arthurzwl/leetcode-cli that referenced this issue Jul 25, 2019
Refactor runtime and memory percentile logic for fixing issue skygragon#114 an…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants