Skip to content

A java project which returns the list of houses with sunset.

License

Notifications You must be signed in to change notification settings

ajesh-n/sunset-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sunset-checker

A java project which returns the list of houses with sunset.

In series of houses. Each house facing north direction. Houses are in a single line east to west. If height fo any house smaller than the height of houses in east, there is no sunset in house.

[house id, height of house]

Sample input -- [B1,500], [B2,300], [B3,200]

Out put -- [B1,B2,B3]

Sample input 2 -- [B1,500], [B2,200], [B3,300]

Output -- [B1,B3]

About

A java project which returns the list of houses with sunset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published