You are viewing a single comment's thread. Return to all comments →
The explantion is wrong. The index in B should be 0
WRONG: A[0] + B[1] = 1 + 9 = 10 >= k
RIGHT: A[0] + B[0] = 1 + 9 = 10 >= k
Seems like cookies are disabled on this browser, please enable them to open this website
Permuting Two Arrays
You are viewing a single comment's thread. Return to all comments →
The explantion is wrong. The index in B should be 0
WRONG: A[0] + B[1] = 1 + 9 = 10 >= k
RIGHT: A[0] + B[0] = 1 + 9 = 10 >= k