Skip to content

lhscompsci/FunHouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAB: Upstairs / Downstairs

Lab Description: Take in any integer array and determine if that array is going up or going down. An array that is going up will contain values that increase. [1,2,3,4,5] is going up. [1,2,3,0,8] is not going up. An array that is going down will contain values that decrease. [5,4,3,2,1] is going down. [5,4,9,1,0] is not going down.

Sample Execution: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is going Up ? true [1, 2, 3, 9, 11, 20, 30] is going Up ? true [9, 8, 7, 6, 5, 4, 3, 2, 0, -2] is going Up ? false [3, 6, 9, 12, 9, 6, 3] is going Up ? false

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is going Down ? false [1, 2, 3, 9, 11, 20, 30] is going Down ? false [9, 8, 7, 6, 5, 4, 3, 2, 0, -2] is going Down ? true [3, 6, 9, 12, 9, 6, 3] is going Down ? false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages