One character. One parcel counted twice.
transcript
This two-pointer loop has one wrong character. It returns an answer that looks right. Can you spot it before the truck leaves?
Three parcels: 5, 9 and 14 kilograms. Find two that add up to exactly 18. 5 and 14 make 19. 5 and 9 make 14. 9 and 14 make 23. Each parcel can be used only once. So the answer is no pair.
The loop runs while left is at most right. 5 plus 14 is 19. Too heavy. Right moves in. 5 plus 9 is 14. Too light. Left moves in. Now both pointers sit on 9. The loop runs once more. 9 plus 9 is 18.
The bug returns one parcel twice. A truck cannot load the same parcel twice. Loop while left is less than right.
When the pointers meet, one value remains. One value cannot make a pair. So stop there, and say no pair fits. That one character is the whole difference.
Full breakdown in the lecture.