Closed chunweii closed 10 months ago
To be honest, the fetching of the question from leetcode can be done directly in question-service backend. And it makes more sense to do it that way rather than go through another layer of serverless functions
Alternatively, the only serverless function that we implement is the weekly update based on https://leetcode.com/api/problems/algorithms/.
Done in our A6 repo
Idea: Serverless function on Google Cloud Functions
We can get all algorithm problems (including their title slugs and difficulty) using https://leetcode.com/api/problems/algorithms/. Make sure that the problem is not paid-only!
We can use the following graphql query on https://leetcode.com/graphql