You are viewing a single comment's thread. Return to all comments →
They cannot buy the same elemnt in the same index. You need to check whether i+1 == i2+1, if they equal, you cannot break the loop.
Seems like cookies are disabled on this browser, please enable them to open this website
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
They cannot buy the same elemnt in the same index. You need to check whether i+1 == i2+1, if they equal, you cannot break the loop.