Back to course home
0% completed
Vote For New Content
Test Case with Multiple Solutions but there is no Prioritization Rule mentioned.
Manas Sambare
May 6, 2024
There is a Test Case:
Your Input: [10, 8, 6] [9, 7, 5] 2 Expected: [[8,9],[10,9]]
While this Test Case is correct, there is an alternate solution:
Your Input: [10, 8, 6] [9, 7, 5] 2 Output: [[10,7],[10,9]]
Both solutions should be correct as:
[10, 7] and [8, 9] add up to 17 [10, 9] adds up to 19
Either this test case should be removed/altered to have only one solution or the question should mention how to prioritize the options.
2
0
Comments
Comments
Shubham Voraa year ago
It is fixed!
On this page