-
Notifications
You must be signed in to change notification settings - Fork 455
Missing No.742 & 758 in list #82
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 < 8000 a class="Link--inTextBlock" href="https://docs.github.com/privacy" target="_blank">privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's a known mismatch of leetcode.com itself, it uses 2 different ids for same question, e.g. {
"status": null,
"stat": {
"total_acs": 2054,
"question__title": "Closest Leaf in a Binary Tree",
"is_new_question": false,
"question__article__slug": "closest-leaf-in-binary-tree",
"total_submitted": 6307,
"frontend_question_id": 742,
"question__title_slug": "closest-leaf-in-a-binary-tree",
"question__article__live": true,
"question__hide": false,
"question_id": 743
} You see for this "Closest Leaf in a Binary Tree", its backend id is 743 (used by leetcode-cli), while its frontend id is 742 (shown on webpage). I guess leetcode.com is not showing all the questions to users (e.g. some very new questions are usually filtered out, or some questions are deleted for some reason?), anyway, there are gaps in the list, but on web page they try to hide those gaps thus invent a "frontend id" to work around this, just a bold guess... |
@shaodan btw, what's your terminal in the screenshot above? I notice the list output is not well aligned, I guess it's caused by a non-mono font? |
@skygragon I'm visiting a jupyter terminal console, seems chrome cannot display check icon and lock icon with monospace font. |
Signed-off-by: Eric Wang <skygragon@gmail.com>
@shaodan could you try this latest commit to see if the id matches the web page?
Please let me know if there are new issues caused by this commit. |
@skygragon It works! thanks for your quick response. |
Signed-off-by: Eric Wang <skygragon@gmail.com>
Problem Summary
Problem 742 is listed as No.743, (No.742 is skipped)
Problem 743 is listed as No.744,
...
Problem 756 is listed as No.757,
Problem 757(newest problem) is listed as No.759 (No.758 is skipped)
leetcode show 742 got [ERROR] Problem not found! [0]
How to reproduce
leetcode list
leetcode show 742
Environment
The text was updated successfully, but these errors were encountered: