leetcode_194. Transpose File ? 待解决

来源:互联网 发布:淘宝宝贝下载软件 编辑:程序博客网 时间:2024/06/03 18:10

Transpose File

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

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

For example, if file.txt has the following content:

name age
alice 21
ryan 30
Output the following:

name alice ryan
age 21 30

提示:提交代码后,需要用简洁的语言解释一下代码思路~ 谢谢

历史题目和总结见公众号「每日一道算法题」

https://leetcode.com/problems/transpose-file/description/

思路

原创粉丝点击