... | @@ -14,3 +14,43 @@ |
... | @@ -14,3 +14,43 @@ |
|

|
|

|
|
|
|
|
|
## 采集需求
|
|
## 采集需求
|
|
|
|
|
|
|
|
## 数据格式
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"questionId": "135", // id
|
|
|
|
"titleSlug": "candy", // 题目url
|
|
|
|
"title": "Candy", // 题目标题
|
|
|
|
"content": "<p>There are <em>N</em> ...", // 题目描述
|
|
|
|
"difficulty": "Hard", // 难度
|
|
|
|
"likes": 623, // 赞数
|
|
|
|
"dislikes": 131, // 踩数
|
|
|
|
"topicTags": [ // 类比标签
|
|
|
|
"Greedy",
|
|
|
|
...
|
|
|
|
],
|
|
|
|
"codeSnippets": [ // 所有语言的代码模板
|
|
|
|
{
|
|
|
|
"lang": "Python", // 语言
|
|
|
|
"code": "class Solution(object):...", // 代码模板
|
|
|
|
},
|
|
|
|
...
|
|
|
|
],
|
|
|
|
"totalAccepted": 112669, // 通过数量
|
|
|
|
"totalSubmission": 381432, // 提交数量
|
|
|
|
"hints": [
|
|
|
|
// TODO
|
|
|
|
],
|
|
|
|
"solution": {
|
|
|
|
"id": "90", // 解答id
|
|
|
|
"content": "[TOC]\n\n## Solution ..." // 解答内容
|
|
|
|
"averageRating": 4.931,
|
|
|
|
"votes": 29
|
|
|
|
},
|
|
|
|
"sampleTestCase": "[1,0,2]",
|
|
|
|
},
|
|
|
|
...
|
|
|
|
]
|
|
|
|
``` |
|
|
|
\ No newline at end of file |