mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 03:11:42 +08:00
add leetcode problem-cn part6
This commit is contained in:
60
算法题(国内版)/originData/transpose-file.json
Normal file
60
算法题(国内版)/originData/transpose-file.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "194",
|
||||
"questionFrontendId": "194",
|
||||
"categoryTitle": "Shell",
|
||||
"boundTopicId": 1457,
|
||||
"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": "转置文件",
|
||||
"translatedContent": "<p>给定一个文件 <code>file.txt</code>,转置它的内容。</p>\n\n<p>你可以假设每行列数相同,并且每个字段由 <code>' '</code> 分隔。</p>\n\n<p> </p>\n\n<p><strong>示例:</strong></p>\n\n<p>假设 <code>file.txt</code> 文件内容如下:</p>\n\n<pre>\nname age\nalice 21\nryan 30\n</pre>\n\n<p>应当输出:</p>\n\n<pre>\nname alice ryan\nage 21 30\n</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 60,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"ruby\": false, \"bash\": false, \"swift\": false, \"golang\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"kotlin\": false, \"rust\": false, \"php\": false, \"typescript\": false, \"racket\": false, \"erlang\": false, \"elixir\": false}",
|
||||
"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.",
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"11.8K\", \"totalSubmission\": \"34K\", \"totalAcceptedRaw\": 11823, \"totalSubmissionRaw\": 34043, \"acRate\": \"34.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "a",
|
||||
"metaData": "{\n \"shell\": true,\n \"manual\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [],
|
||||
"enableRunCode": false,
|
||||
"envInfo": "{\"bash\":[\"Bash\",\"<p>\\u7248\\u672c\\uff1a<code>Bash 4.3.30<\\/code><\\/p>\"]}",
|
||||
"book": null,
|
||||
"isSubscribed": false,
|
||||
"isDailyQuestion": false,
|
||||
"dailyRecordStatus": null,
|
||||
"editorType": "CKEDITOR",
|
||||
"ugcQuestionId": null,
|
||||
"style": "LEETCODE",
|
||||
"exampleTestcases": "a",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user