How to use iterator for vector<int> &A?


#1

Logic is fine, not sure how to use iterator.


#2

simply use a for loop and you are good to go …


#3

Thanks bro.
Could you please help me out with N max pair combinations, from Heaps and Maps ? I didn’t use extra memory, no recursion, every variable by reference.


#4

ya sure. I ddn’t get your question. Do you want the code or is there something specific you want to ask?


#5

Thanks man, but I got it resolved.