Problem Statement
Read seven sorted integers and a target value, then print the binary-search index for the target or -1 if it is missing.
DEMO-OOP-33 โข Object Oriented Programming
Read seven sorted integers and a target value, then print the binary-search index for the target or -1 if it is missing.
Input is given as whitespace-separated tokens in this order:
Print the exact report in this order:
Submit runs every public testcase in this browser. Results and code never leave this device.
1 3 5 7 9 11 13 7
Index: 3
2 4 6 8 10 12 14 14
Index: 6
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question