2022-03-07 解題區►Leetcode►Easy Leetcode 2194 - Cells in a Range on an Excel Sheet 題目 Problem# 題目給你一組excel 的表格字串 e.g. "K1:L2" 問你能不能像 excel 那樣輸出表格順序 e.g. ["K1","K2","L1","L2"] 行由一個大寫英文字母表示;列由一個正整數表示。題目要求回傳表格的陣列 s.length == 5 'A' <= s[0] <= s[3] <= 'Z' '1' <= s[1] <= s[4] <= '9' 想法# 兩層 for 迴圈解決 時間複雜度: O(N) 空間複雜度: O(N) AC Code# Newer Leetcode 2196 - Create Binary Tree From Descriptions Older Leetcode 799 - Champagne Tower