educative.io

Product suggestions

How this can be two pointer problem. Any suggestion would be appreciated.

never mind found the answer same as finding sum in sorted array. here pointers would be the products which total would be the remaining sum… though design here relying on two product only to show customer to eligible for free shipping not Three!


Course: https://www.educative.io/collection/10370001/4651429556125696
Lesson: https://www.educative.io/collection/page/10370001/4651429556125696/6346006251962368

1 Like