{ "data": { "question": { "questionId": "194", "questionFrontendId": "194", "boundTopicId": null, "title": "Transpose File", "titleSlug": "transpose-file", "content": "

Given a text file file.txt, transpose its content.

\n\n

You may assume that each row has the same number of columns, and each field is separated by the ' ' character.

\n\n

Example:

\n\n

If file.txt has the following content:

\n\n
\nname age\nalice 21\nryan 30\n
\n\n

Output the following:

\n\n
\nname alice ryan\nage 21 30\n
\n", "translatedTitle": null, "translatedContent": null, "isPaidOnly": false, "difficulty": "Medium", "likes": 105, "dislikes": 242, "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" } ], "stats": "{\"totalAccepted\": \"18.2K\", \"totalSubmission\": \"72.8K\", \"totalAcceptedRaw\": 18250, \"totalSubmissionRaw\": 72847, \"acRate\": \"25.1%\"}", "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\", \"

Bash 4.3.30.

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }