Mental Model
Floor is the biggest number less than or equal to target; ceil is the smallest number greater than or equal to target in a sorted list.
Analogy: Imagine standing on a number line with sorted steps; floor is the step you stand on or just below, ceil is the step you stand on or just above.
Sorted Array: 1 -> 3 -> 5 -> 7 -> 9 -> null Target: 6 Floor: 5 (just below 6) Ceil: 7 (just above 6)