Back to course home
0% completed
Vote For New Content
Are repeated integers meant to be handed with this solution? For example, for ar...
JC Denton
Jan 30, 2022
Are repeated integers meant to be handed with this solution? For example, for arguments: ([4, 6, 6, 6, 10], 6)
The result is 2. Reading the prompt it is unclear if this is sufficient or if the answer should be 1 in this case.
2
0
Comments
Comments
Design Gurus4 years ago
If it is not specified, we should not assume anything. In this case, the correct ceiling number is "6", and since it is present multiple times, any index containing "6" is correct (i.e., 1,2, or 3) . If the question asks to return the smallest index in case of repeated ...
On this page