...

/

Challenge: Find the Floor and Ceil of a Number in a Sorted List

Challenge: Find the Floor and Ceil of a Number in a Sorted List

In this lesson, we will learn about finding the floor and ceiling of a number from a given pool of numbers.

Floor functions

A floor function takes a real number xx and returns the greatest Integer less than or equal to x.x.

For example,

floor(x)=xfloor(x) = \lfloor x \rfloor ...

Access this course and 1400+ top-rated courses and projects.