{ "data": { "question": { "questionId": "613", "questionFrontendId": "613", "categoryTitle": "Database", "boundTopicId": 2634, "title": "Shortest Distance in a Line", "titleSlug": "shortest-distance-in-a-line", "content": null, "translatedTitle": "直线上的最近距离", "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 63, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"21.6K\", \"totalSubmission\": \"27.3K\", \"totalAcceptedRaw\": 21603, \"totalSubmissionRaw\": 27278, \"acRate\": \"79.2%\"}", "hints": [], "solution": null, "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, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"

Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"

PostgreSQL 16<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Point\":[\"x\"]},\"rows\":{\"Point\":[[-1],[0],[2]]}}", "__typename": "QuestionNode" } } }