Skip to content

Conversation

yqmmm
Copy link
Contributor

@yqmmm yqmmm commented Dec 28, 2021

I'm getting error running leetcode stat. This should fix it.

The stat command assume that the count field will be less than 8 char long. However, the are over one thousand medium level problems in leetcode now. The maximum length of a count field now is 1000/1000, which is 9 char long.

This is a temporary fix. A better solution would be to decide the length based on the response it received from Leetcode.


Before and after fix:

leetcode-cli

Copy link
Owner

@clearloop clearloop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@clearloop clearloop merged commit 8b77b91 into clearloop:master Jan 11, 2022
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.

2 participants