Activity Selection Problem


How to push elements in a pair of vectors. ??

@ashwani225
hello Ashwani ,
to push pair in vector.
first u need to make pair that u want to push.

let say p is that pair.
now u can simply push it by doing v.push_back( p) ; // v is vector ,p is pair

refer this to know how to make pairs-> https://www.geeksforgeeks.org/pair-in-cpp-stl/