g0101_0200.s0194_transpose_file.readme.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
The newest version!
194\. Transpose File
Medium
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.
**Example:**
If `file.txt` has the following content:
name age
alice 21
ryan 30
Output the following:
name alice ryan
age 21 30
© 2015 - 2024 Weber Informatics LLC | Privacy Policy