skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 459 forks source link

Problem not found! #90

Closed mtortorise closed 5 years ago

mtortorise commented 6 years ago

Problem Summary

Hi, I got the error '[ERROR] Problem not found! [0]' when I use the command 'leetcode show 457 -gxl java'. I am able to obtain other problems with the same command. Also I could found the problem in the website.

How to reproduce

Environment

skygragon commented 6 years ago

please clear cache and try again?

leetcode cache -d
mtortorise commented 6 years ago

I clear the cache, but it does not help. And I found Problem 458 is not available either.

skygragon commented 6 years ago

@mtortorise Thanks for reporting this!

Seems leetcode.com doesn't include question 457 or 458 in the json list: https://leetcode.com/api/problems/algorithms/, sounds like a bug of leetcode.com itself?

skygragon commented 6 years ago

Just find those questions are grouped in a category called "draft":

try https://leetcode.com/api/problems/draft/

skygragon commented 6 years ago

@mtortorise leetcode.com has moved 457/458 questions out of "draft" category, you should show them as usual now.