{ "data": { "question": { "questionId": "1964", "questionFrontendId": "1811", "boundTopicId": null, "title": "Find Interview Candidates", "titleSlug": "find-interview-candidates", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 188, "dislikes": 24, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Contests\":[\"contest_id\",\"gold_medal\",\"silver_medal\",\"bronze_medal\"],\"Users\":[\"user_id\",\"mail\",\"name\"]},\"rows\":{\"Contests\":[[190,1,5,2],[191,2,3,5],[192,5,2,3],[193,1,3,5],[194,4,5,2],[195,4,2,1],[196,1,5,2]],\"Users\":[[1,\"sarah@leetcode.com\",\"Sarah\"],[2,\"bob@leetcode.com\",\"Bob\"],[3,\"alice@leetcode.com\",\"Alice\"],[4,\"hercy@leetcode.com\",\"Hercy\"],[5,\"quarz@leetcode.com\",\"Quarz\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"13.8K\", \"totalSubmission\": \"22.4K\", \"totalAcceptedRaw\": 13803, \"totalSubmissionRaw\": 22365, \"acRate\": \"61.7%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Contests\":[\"contest_id\",\"gold_medal\",\"silver_medal\",\"bronze_medal\"],\"Users\":[\"user_id\",\"mail\",\"name\"]},\"rows\":{\"Contests\":[[190,1,5,2],[191,2,3,5],[192,5,2,3],[193,1,3,5],[194,4,5,2],[195,4,2,1],[196,1,5,2]],\"Users\":[[1,\"sarah@leetcode.com\",\"Sarah\"],[2,\"bob@leetcode.com\",\"Bob\"],[3,\"alice@leetcode.com\",\"Alice\"],[4,\"hercy@leetcode.com\",\"Hercy\"],[5,\"quarz@leetcode.com\",\"Quarz\"]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\", \"Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))\"], \"mssql\": [\"Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\", \"Create table Users (user_id int, mail varchar(50), name varchar(30))\"], \"oraclesql\": [\"Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\", \"Create table Users (user_id int, mail varchar(50), name varchar(30))\"], \"database\": true, \"name\": \"find_interview_candidates\", \"pythondata\": [\"Contests = pd.DataFrame([], columns=['contest_id', 'gold_medal', 'silver_medal', 'bronze_medal']).astype({'contest_id':'Int64', 'gold_medal':'Int64', 'silver_medal':'Int64', 'bronze_medal':'Int64'})\", \"Users = pd.DataFrame([], columns=['user_id', 'mail', 'name']).astype({'user_id':'Int64', 'mail':'object', 'name':'object'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\", \"Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))\"], \"database_schema\": {\"Contests\": {\"contest_id\": \"INT\", \"gold_medal\": \"INT\", \"silver_medal\": \"INT\", \"bronze_medal\": \"INT\"}, \"Users\": {\"user_id\": \"INT\", \"mail\": \"VARCHAR(50)\", \"name\": \"VARCHAR(30)\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)", "Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))", "Truncate table Contests", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('190', '1', '5', '2')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('191', '2', '3', '5')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('192', '5', '2', '3')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('193', '1', '3', '5')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('194', '4', '5', '2')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('195', '4', '2', '1')", "insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('196', '1', '5', '2')", "Truncate table Users", "insert into Users (user_id, mail, name) values ('1', 'sarah@leetcode.com', 'Sarah')", "insert into Users (user_id, mail, name) values ('2', 'bob@leetcode.com', 'Bob')", "insert into Users (user_id, mail, name) values ('3', 'alice@leetcode.com', 'Alice')", "insert into Users (user_id, mail, name) values ('4', 'hercy@leetcode.com', 'Hercy')", "insert into Users (user_id, mail, name) values ('5', 'quarz@leetcode.com', 'Quarz')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.
Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0
\"], \"postgresql\": [\"PostgreSQL\", \"PostgreSQL 16
\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }