1
+ {
2
+ "data" : {
3
+ "question" : {
4
+ "questionId" : " 3432" ,
5
+ "questionFrontendId" : " 3124" ,
6
+ "categoryTitle" : " Database" ,
7
+ "boundTopicId" : 2750525 ,
8
+ "title" : " Find Longest Calls" ,
9
+ "titleSlug" : " find-longest-calls" ,
10
+ "content" : null ,
11
+ "translatedTitle" : " 查找最长的电话" ,
12
+ "translatedContent" : null ,
13
+ "isPaidOnly" : true ,
14
+ "difficulty" : " Medium" ,
15
+ "likes" : 0 ,
16
+ "dislikes" : 0 ,
17
+ "isLiked" : null ,
18
+ "similarQuestions" : " []" ,
19
+ "contributors" : [],
20
+ "langToValidPlayground" : null ,
21
+ "topicTags" : [
22
+ {
23
+ "name" : " Database" ,
24
+ "slug" : " database" ,
25
+ "translatedName" : " 数据库" ,
26
+ "__typename" : " TopicTagNode"
27
+ }
28
+ ],
29
+ "companyTagStats" : null ,
30
+ "codeSnippets" : null ,
31
+ "stats" : " {\" totalAccepted\" : \" 50\" , \" totalSubmission\" : \" 83\" , \" totalAcceptedRaw\" : 50, \" totalSubmissionRaw\" : 83, \" acRate\" : \" 60.2%\" }" ,
32
+ "hints" : [],
33
+ "solution" : null ,
34
+ "status" : null ,
35
+ "sampleTestCase" : " {\" headers\" :{\" Contacts\" :[\" id\" ,\" first_name\" ,\" last_name\" ],\" Calls\" :[\" contact_id\" ,\" type\" ,\" duration\" ]},\" rows\" :{\" Contacts\" :[[1,\" John\" ,\" Doe\" ],[2,\" Jane\" ,\" Smith\" ],[3,\" Alice\" ,\" Johnson\" ],[4,\" Michael\" ,\" Brown\" ],[5,\" Emily\" ,\" Davis\" ]],\" Calls\" :[[1,\" incoming\" ,120],[1,\" outgoing\" ,180],[2,\" incoming\" ,300],[2,\" outgoing\" ,240],[3,\" incoming\" ,150],[3,\" outgoing\" ,360],[4,\" incoming\" ,420],[4,\" outgoing\" ,200],[5,\" incoming\" ,180],[5,\" outgoing\" ,280]]}}" ,
36
+ "metaData": "{\"mysql\":[\"Create table if Not Exists Contacts(id int, first_name varchar(20), last_name varchar(20))\",\"Create table if Not Exists Calls(contact_id int, type ENUM('incoming', 'outgoing'), duration int)\"],\"mssql\":[\"Create table Contacts(id int, first_name varchar(20), last_name varchar(20))\",\"Create table Calls(contact_id int, type varchar(20) NOT NULL CHECK (type in ('incoming' , 'outgoing')), duration int)\"],\"oraclesql\":[\"Create table Contacts(id int, first_name varchar(20), last_name varchar(20))\",\"Create table Calls(contact_id int, type varchar(20) NOT NULL CHECK (type in ('incoming' , 'outgoing')), duration int)\"],\"database\":true,\"name\":\"find_longest_calls\",\"pythondata\":[\"Contacts = pd.DataFrame([], columns=['id', 'first_name', 'last_name']).astype({'id':'Int64', 'first_name':'object', 'last_name':'object'})\\n\",\"Calls = pd.DataFrame([], columns=['contact_id', 'type', 'duration']).astype({'contact_id': 'Int64', 'type': 'category', 'duration': 'Int64'})\\n\"],\"postgresql\":[\"CREATE TABLE Contacts (\\n id SERIAL PRIMARY KEY,\\n first_name VARCHAR(20),\\n last_name VARCHAR(20)\\n);\\n\",\"CREATE TABLE Calls (\\n contact_id INT,\\n type VARCHAR(20) NOT NULL CHECK (type IN ('incoming', 'outgoing')),\\n duration INT\\n);\\n\"],\"manual\":true,\"database_schema\":{\"Contacts\":{\"id\":\"INT\",\"first_name\":\"VARCHAR(20)\",\"last_name\":\"VARCHAR(20)\"},\"Calls\":{\"contact_id\":\"INT\",\"type\":\"ENUM('incoming', 'outgoing')\",\"duration\":\"INT\"}}}",
37
+ "judgerAvailable" : true ,
38
+ "judgeType" : " large" ,
39
+ "mysqlSchemas" : [
40
+ " Create table if Not Exists Contacts(id int, first_name varchar(20), last_name varchar(20))" ,
41
+ " Create table if Not Exists Calls(contact_id int, type ENUM('incoming', 'outgoing'), duration int)" ,
42
+ " Truncate table Contacts" ,
43
+ " insert into Contacts (id, first_name, last_name) values ('1', 'John', 'Doe')" ,
44
+ " insert into Contacts (id, first_name, last_name) values ('2', 'Jane', 'Smith')" ,
45
+ " insert into Contacts (id, first_name, last_name) values ('3', 'Alice', 'Johnson')" ,
46
+ " insert into Contacts (id, first_name, last_name) values ('4', 'Michael', 'Brown')" ,
47
+ " insert into Contacts (id, first_name, last_name) values ('5', 'Emily', 'Davis')" ,
48
+ " Truncate table Calls" ,
49
+ " insert into Calls (contact_id, type, duration) values ('1', 'incoming', '120')" ,
50
+ " insert into Calls (contact_id, type, duration) values ('1', 'outgoing', '180')" ,
51
+ " insert into Calls (contact_id, type, duration) values ('2', 'incoming', '300')" ,
52
+ " insert into Calls (contact_id, type, duration) values ('2', 'outgoing', '240')" ,
53
+ " insert into Calls (contact_id, type, duration) values ('3', 'incoming', '150')" ,
54
+ " insert into Calls (contact_id, type, duration) values ('3', 'outgoing', '360')" ,
55
+ " insert into Calls (contact_id, type, duration) values ('4', 'incoming', '420')" ,
56
+ " insert into Calls (contact_id, type, duration) values ('4', 'outgoing', '200')" ,
57
+ " insert into Calls (contact_id, type, duration) values ('5', 'incoming', '180')" ,
58
+ " insert into Calls (contact_id, type, duration) values ('5', 'outgoing', '280')"
59
+ ],
60
+ "enableRunCode" : true ,
61
+ "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>\" ]}" ,
62
+ "book" : null ,
63
+ "isSubscribed" : false ,
64
+ "isDailyQuestion" : false ,
65
+ "dailyRecordStatus" : null ,
66
+ "editorType" : " CKEDITOR" ,
67
+ "ugcQuestionId" : null ,
68
+ "style" : " LEETCODE" ,
69
+ "exampleTestcases" : " {\" headers\" :{\" Contacts\" :[\" id\" ,\" first_name\" ,\" last_name\" ],\" Calls\" :[\" contact_id\" ,\" type\" ,\" duration\" ]},\" rows\" :{\" Contacts\" :[[1,\" John\" ,\" Doe\" ],[2,\" Jane\" ,\" Smith\" ],[3,\" Alice\" ,\" Johnson\" ],[4,\" Michael\" ,\" Brown\" ],[5,\" Emily\" ,\" Davis\" ]],\" Calls\" :[[1,\" incoming\" ,120],[1,\" outgoing\" ,180],[2,\" incoming\" ,300],[2,\" outgoing\" ,240],[3,\" incoming\" ,150],[3,\" outgoing\" ,360],[4,\" incoming\" ,420],[4,\" outgoing\" ,200],[5,\" incoming\" ,180],[5,\" outgoing\" ,280]]}}" ,
70
+ "__typename" : " QuestionNode"
71
+ }
72
+ }
73
+ }
0 commit comments