418 Sentence Screen Fitting
1. Question
Input: rows = 2, cols = 8, sentence = ["hello", "world"]
Output: 1
Explanation:
hello---
world---
The character '-' signifies an empty space on the screen.2. Implementation
3. Time & Space Complexity
Last updated