If this activity has start time greater than or equal to the finish time of previously selected activity , then select it
if ( arr [ j ] . start >= arr [ i ] . finish ) { cout << " ( " << arr [ j ] . start << " , ▁ " << arr [ j ] . finish << " ) , ▁ " ; i = j ; } } }