Skip to content

duyle6889/horizontal_skyline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

horizontal_skyline

For example, consider Array A such that: A[1, 3, 2, 1, 2, 1, 5, 3, 3, 4, 2]

https://i.imgur.com/Ol2ncvm.png

You would like to paint the skyline using continuous horizontal brushstrokes. Every horizontal stroke is one unit high and arbitrarily wide. The goal is to calculater the minimum number of horizontal strokes needed. For example, the above shape can be painted using 9 horizontal strokes

https://i.imgur.com/5c9NvDG.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published