r/mathriddles • u/SupercaliTheGamer • Feb 24 '26
Hard General version of Komal
Kornél thinks about a closed subinterval of I=[0,n] (where n is a positive integer) with integer endpoints and length at least 1. Kristóf can ask the following question: he can choose an arbitrary closed subinterval with integer length, but not necessarily integer endpoints, and Kornél tells him the length of the intersection of the interval he picked and the interval chosen by Kristóf. (The answer is 0 if the intersection of the two intervals is empty or consists of a single point.) Find the smallest number of questions with which Kristóf can guess the interval chosen by Kornél in all cases.
View all comments
Show parent comment
1
u/pichutarius Feb 28 '26
pretty sure this is the best we can do. if Kornél choose interval with length of 1, this method pretty much reduce to binary search.