Sunset Hills: A Coding Challenge


Oh, what a view!

An array of buildings is facing the sun. The heights of each building from West (left) to East (right) are given in an integer array. The only buildings that are able to see the sunset are the ones that do not have a taller building blocking their view. Write a program that prints which buildings will be able to see the sunset, given the array.

    • CSS and Bootstrap 5 Layout
    • JavaScript Fundamentals
    • JavaScript Loops
    • JavaScript DOM Manipulation
    • JavaScript Boolean Logic

TECHNOLOGIES USED

JavaScript

One of the core technologies of web development, JavaScript is a programming language that runs right in your browser.

Bootstrap 5

Bootstrap 5 is an open-source CSS framework directed at responsive, mobile-first web development.

HTML 5

HyperText Markup Language creates structured documents so information can easily be displayed within your web broswer.

CSS 3

Cascading Style Sheets design and enable the presentation of content, such as layout, colors, and fonts.