Floor and Ceiling Queries
Given a set of keys, answer queries F x (largest key <= x) and C x (smallest key >= x). Print -1 if none exists.
Constraints
1 <= n, q <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.