1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode/originData/[no content]election-results.json

56 lines
4.0 KiB
JSON
Raw Normal View History

2023-08-20 20:47:46 +08:00
{
"data": {
"question": {
"questionId": "3078",
"questionFrontendId": "2820",
"boundTopicId": null,
"title": "Election Results",
"titleSlug": "election-results",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
2023-12-09 18:42:21 +08:00
"likes": 14,
2023-08-20 20:47:46 +08:00
"dislikes": 3,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Votes\":[\"voter\",\"candidate\"]},\"rows\":{\"Votes\":[[\"Kathy\",null],[\"Charles\",\"Ryan\"],[\"Charles\",\"Christine\"],[\"Charles\",\"Kathy\"],[\"Benjamin\",\"Christine\"],[\"Anthony\",\"Ryan\"],[\"Edward\",\"Ryan\"],[\"Terry\",null],[\"Evelyn\",\"Kathy\"],[\"Arthur\",\"Christine\"]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 19:57:46 +08:00
"stats": "{\"totalAccepted\": \"815\", \"totalSubmission\": \"1.2K\", \"totalAcceptedRaw\": 815, \"totalSubmissionRaw\": 1248, \"acRate\": \"65.3%\"}",
2023-08-20 20:47:46 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Votes\":[\"voter\",\"candidate\"]},\"rows\":{\"Votes\":[[\"Kathy\",null],[\"Charles\",\"Ryan\"],[\"Charles\",\"Christine\"],[\"Charles\",\"Kathy\"],[\"Benjamin\",\"Christine\"],[\"Anthony\",\"Ryan\"],[\"Edward\",\"Ryan\"],[\"Terry\",null],[\"Evelyn\",\"Kathy\"],[\"Arthur\",\"Christine\"]]}}",
2023-12-09 18:42:21 +08:00
"metaData": "{\"mysql\": [\"Create table if not exists Votes(voter varchar(30), candidate varchar(30))\"], \"mssql\": [\"Create table Votes(voter varchar(30),candidate varchar(30))\"], \"oraclesql\": [\"Create table Votes(voter varchar(30),candidate varchar(30))\"], \"database\": true, \"name\": \"get_election_results\", \"pythondata\": [\"Votes = pd.DataFrame([], columns=['voter', 'candidate']).astype({'voter':'object', 'candidate':'object'})\"], \"postgresql\": [\"Create table if not exists Votes(voter varchar(30), candidate varchar(30))\"], \"database_schema\": {\"Votes\": {\"voter\": \"VARCHAR(30)\", \"candidate\": \"VARCHAR(30)\"}}}",
2023-08-20 20:47:46 +08:00
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table if not exists Votes(voter varchar(30), candidate varchar(30))",
"Truncate table Votes",
"insert into Votes (voter, candidate) values ('Kathy', 'None')",
"insert into Votes (voter, candidate) values ('Charles', 'Ryan')",
"insert into Votes (voter, candidate) values ('Charles', 'Christine')",
"insert into Votes (voter, candidate) values ('Charles', 'Kathy')",
"insert into Votes (voter, candidate) values ('Benjamin', 'Christine')",
"insert into Votes (voter, candidate) values ('Anthony', 'Ryan')",
"insert into Votes (voter, candidate) values ('Edward', 'Ryan')",
"insert into Votes (voter, candidate) values ('Terry', 'None')",
"insert into Votes (voter, candidate) values ('Evelyn', 'Kathy')",
"insert into Votes (voter, candidate) values ('Arthur', 'Christine')"
],
"enableRunCode": true,
"enableTestMode": false,
"enableDebugger": false,
2023-12-09 18:42:21 +08:00
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
2023-08-20 20:47:46 +08:00
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}