1324. Print Words Vertically
Description
**Input:** s = "HOW ARE YOU"
**Output:** ["HAY","ORO","WEU"]
**Explanation:** Each word is printed vertically.
"HAY"
"ORO"
"WEU"
**Input:** s = "TO BE OR NOT TO BE"
**Output:** ["TBONTB","OEROOE"," T"]
**Explanation:** Trailing spaces is not allowed.
"TBONTB"
"OEROOE"
" T"ac
Last updated