---
title: "Discussion on \"Sentence Screen Fitting\" | Hashnode"
description: "Discussion on \"Sentence Screen Fitting\". Given a rows x cols screen and a sentence represented by a list of non-empty words, find how many times the given sentence can be fitted on the screen.\nNote:\n\nA word cannot be split into two lines.\n\nThe order of words in the sentence must remain unch..."
url: "https://hashnode.com/posts/sentence-screen-fitting/67faee0ae97e8ff603bb2125"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sentence Screen Fitting](https://dynamicprogramming.hashnode.dev/sentence-screen-fitting?utm_source=hashnode&utm_medium=feed)

Given a rows x cols screen and a sentence represented by a list of non-empty words, find how many times the given sentence can be fitted on the screen. Note: A word cannot be split into two lines. The order of words in the sentence must remain unch...

Apr 12, 2025 · 4 min read · dynamicprogramming.hashnode.dev  
Read the article

## Written by

[Abhi](https://hashnode.com/@abhikommen)

@abhikommen

  
[View profile](https://hashnode.com/@abhikommen)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
