1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-25 17:50:26 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]top-percentile-fraud.json
2024-03-01 00:47:37 +08:00

63 lines
4.9 KiB
JSON

{
"data": {
"question": {
"questionId": "3339",
"questionFrontendId": "100238",
"categoryTitle": "Database",
"boundTopicId": 2653969,
"title": "Top Percentile Fraud",
"titleSlug": "top-percentile-fraud",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"12\", \"totalSubmission\": \"20\", \"totalAcceptedRaw\": 12, \"totalSubmissionRaw\": 20, \"acRate\": \"60.0%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Fraud\":[\"policy_id\",\"state\",\"fraud_score\"]},\"rows\":{\"Fraud\":[[1,\"California\",0.92],[2,\"California\",0.68],[3,\"California\",0.17],[4,\"New York\",0.94],[5,\"New York\",0.81],[6,\"New York\",0.77],[7,\"Texas\",0.98],[8,\"Texas\",0.97],[9,\"Texas\",0.96],[10,\"Florida\",0.97],[11,\"Florida\",0.98],[12,\"Florida\",0.78],[13,\"Florida\",0.88],[14,\"Florida\",0.66]]}}",
"metaData": "{\"mysql\":[\"Create table If Not Exists Fraud (policy_id int, state varchar(50), fraud_score decimal(5,2))\"],\"mssql\":[\"Create table Fraud (policy_id int, state varchar(50), fraud_score decimal(5,2))\"],\"oraclesql\":[\"Create table Fraud (policy_id int, state varchar(50), fraud_score decimal(10,2))\"],\"database\":true,\"name\":\"top_percentile_fraud\",\"pythondata\":[\"Fraud = pd.DataFrame([], columns=['policy_id', 'state', 'fraud_score']).astype({'policy_id':'Int64', 'state':'object', 'fraud_score':'Float64'})\\n\"],\"postgresql\":[\"Create table If Not Exists Fraud (policy_id int, state varchar(50), fraud_score decimal(5,2))\\n\"],\"database_schema\":{\"Fraud\":{\"policy_id\":\"INT\",\"state\":\"VARCHAR(50)\",\"fraud_score\":\"DECIMAL(5, 2)\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Fraud (policy_id int, state varchar(50), fraud_score decimal(5,2))",
"Truncate table Fraud",
"insert into Fraud (policy_id, state, fraud_score) values ('1', 'California', '0.92')",
"insert into Fraud (policy_id, state, fraud_score) values ('2', 'California', '0.68')",
"insert into Fraud (policy_id, state, fraud_score) values ('3', 'California', '0.17')",
"insert into Fraud (policy_id, state, fraud_score) values ('4', 'New York', '0.94')",
"insert into Fraud (policy_id, state, fraud_score) values ('5', 'New York', '0.81')",
"insert into Fraud (policy_id, state, fraud_score) values ('6', 'New York', '0.77')",
"insert into Fraud (policy_id, state, fraud_score) values ('7', 'Texas', '0.98')",
"insert into Fraud (policy_id, state, fraud_score) values ('8', 'Texas', '0.97')",
"insert into Fraud (policy_id, state, fraud_score) values ('9', 'Texas', '0.96')",
"insert into Fraud (policy_id, state, fraud_score) values ('10', 'Florida', '0.97')",
"insert into Fraud (policy_id, state, fraud_score) values ('11', 'Florida', '0.98')",
"insert into Fraud (policy_id, state, fraud_score) values ('12', 'Florida', '0.78')",
"insert into Fraud (policy_id, state, fraud_score) values ('13', 'Florida', '0.88')",
"insert into Fraud (policy_id, state, fraud_score) values ('14', 'Florida', '0.66')"
],
"enableRunCode": true,
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Fraud\":[\"policy_id\",\"state\",\"fraud_score\"]},\"rows\":{\"Fraud\":[[1,\"California\",0.92],[2,\"California\",0.68],[3,\"California\",0.17],[4,\"New York\",0.94],[5,\"New York\",0.81],[6,\"New York\",0.77],[7,\"Texas\",0.98],[8,\"Texas\",0.97],[9,\"Texas\",0.96],[10,\"Florida\",0.97],[11,\"Florida\",0.98],[12,\"Florida\",0.78],[13,\"Florida\",0.88],[14,\"Florida\",0.66]]}}",
"__typename": "QuestionNode"
}
}
}