S*U 发帖数: 23 | 1 看以前的面经:http://www.mitbbs.com/article_t/JobHunting/32263875.html
里面打印表格的一道题没啥好的思路。
有谁能给讲讲吗。
Given a table:
Name Size Color ...
AAA Med Red ...
BBB Med Red ...
CCC Big Blue ...
DDD Big Red ...
EEE Small Blue ...
Input: String[][] table, and String[] order = {"Color", "Size", "Name"...}
Output:
Red
Med
AAA
BBB
Big
DDD
Blue
Small
EEE
Big
CCC
Note "order" gives the order of the output of the columns. |
|