Practice Cells in a Range on an Excel Sheet
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
A cell name combines its column letter followed by its row number: A is column 1, B is column 2, and so on. Given the inclusive rectangular range s in the form col1row1:col2row2, return every cell name in the range. List columns in increasing order, and within each column list rows in increasing order. The starting row and column do not exceed the ending ones.
Source: Cells in a Range on an Excel Sheet on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
s = "K1:L2"
["K1","K2","L1","L2"]
# Example 2
s = "A1:F1"
["A1","B1","C1","D1","E1","F1"]
Constraints
Related LeetCode Problems
Practice more problems similar to Cells in a Range on an Excel Sheet.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.