{ "data": { "question": { "questionId": "613", "questionFrontendId": "613", "boundTopicId": null, "title": "Shortest Distance in a Line", "titleSlug": "shortest-distance-in-a-line", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 313, "dislikes": 40, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Point\":[\"x\"]},\"rows\":{\"Point\":[[-1],[0],[2]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"67.3K\", \"totalSubmission\": \"83.8K\", \"totalAcceptedRaw\": 67280, \"totalSubmissionRaw\": 83775, \"acRate\": \"80.3%\"}", "hints": [], "solution": { "id": "179", "canSeeDetail": false, "paidOnly": true, "hasVideoSolution": false, "paidOnlyVideo": true, "__typename": "ArticleNode" }, "status": null, "sampleTestCase": "{\"headers\":{\"Point\":[\"x\"]},\"rows\":{\"Point\":[[-1],[0],[2]]}}", "metaData": "{\"mysql\": [\"Create Table If Not Exists Point (x int not null)\"], \"mssql\": [\"Create Table Point (x int not null)\"], \"oraclesql\": [\"Create Table Point (x int not null)\"], \"database\": true, \"name\": \"shortest_distance\", \"pythondata\": [\"Point = pd.DataFrame([], columns=['x']).astype({'x':'Int64'})\"], \"postgresql\": [\"Create Table If Not Exists Point (x int not null)\"], \"database_schema\": {\"Point\": {\"x\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create Table If Not Exists Point (x int not null)", "Truncate table Point", "insert into Point (x) values ('-1')", "insert into Point (x) values ('0')", "insert into Point (x) values ('2')" ], "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" } } }