A pdf document with three top voted answers in the discussion forum for each problem on leetcode.com.
Yes... There is an app for this ... Leetcoder.
Nothing fancy here... Basically:
- get discussion url for each question based on its url pattern
- crawl (python, lxml) top three voted answers for each question given a discussion url
- write answers for each question into mongodb
- style and display the answers locally via node.js/express.js
- generate pdf with wkhtmltopdf
Note there are answers for locked questions in this pdf. The reason is that while the problem is locked, the dicussion for the problem isn't.
All answers in the document are attributed to their authors. If you see your answers in there and would rather your answer not be included, send me a note at [email protected].
- 欢迎用我的app GeeksforGeeks Reader.
Just open an issue.