2022-03-27 18:35:17 +08:00
{
"data" : {
"question" : {
"questionId" : "194" ,
"questionFrontendId" : "194" ,
"boundTopicId" : null ,
"title" : "Transpose File" ,
"titleSlug" : "transpose-file" ,
"content" : "<p>Given a text file <code>file.txt</code>, transpose its content.</p>\n\n<p>You may assume that each row has the same number of columns, and each field is separated by the <code>' '</code> character.</p>\n\n<p><strong>Example:</strong></p>\n\n<p>If <code>file.txt</code> has the following content:</p>\n\n<pre>\nname age\nalice 21\nryan 30\n</pre>\n\n<p>Output the following:</p>\n\n<pre>\nname alice ryan\nage 21 30\n</pre>\n" ,
"translatedTitle" : null ,
"translatedContent" : null ,
"isPaidOnly" : false ,
"difficulty" : "Medium" ,
2022-05-02 23:44:12 +08:00
"likes" : 105 ,
"dislikes" : 242 ,
2022-03-27 18:35:17 +08:00
"isLiked" : null ,
"similarQuestions" : "[]" ,
"exampleTestcases" : "a" ,
"categoryTitle" : "Shell" ,
"contributors" : [ ] ,
"topicTags" : [
{
"name" : "Shell" ,
"slug" : "shell" ,
"translatedName" : null ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : [
{
"lang" : "Bash" ,
"langSlug" : "bash" ,
"code" : "# Read from the file file.txt and print its transposed content to stdout.\n" ,
"__typename" : "CodeSnippetNode"
}
] ,
2022-05-02 23:44:12 +08:00
"stats" : "{\"totalAccepted\": \"18.2K\", \"totalSubmission\": \"72.8K\", \"totalAcceptedRaw\": 18250, \"totalSubmissionRaw\": 72847, \"acRate\": \"25.1%\"}" ,
2022-03-27 18:35:17 +08:00
"hints" : [ ] ,
"solution" : null ,
"status" : null ,
"sampleTestCase" : "a" ,
"metaData" : "{\n \"shell\": true,\n \"manual\": true\n}" ,
"judgerAvailable" : true ,
"judgeType" : "large" ,
"mysqlSchemas" : [ ] ,
"enableRunCode" : false ,
"enableTestMode" : false ,
"enableDebugger" : false ,
"envInfo" : "{\"bash\": [\"Bash\", \"<p><code>Bash 4.3.30</code>.</p>\"]}" ,
"libraryUrl" : null ,
"adminUrl" : null ,
"challengeQuestion" : null ,
"__typename" : "QuestionNode"
}
}
}