Given a sorted array, find the floor (largest element <= target) and ceil (smallest element >= target) of a target number. Also, print a pattern (e.g., a diamond or pyramid) using a single loop.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.