Second state which does not include current index
ans = max ( ans , findLongest ( a , n , present + 1 , previous ) ) NEW_LINE else : NEW_LINE h1 = a [ previous ] [ 0 ] NEW_LINE h2 = a [ present ] [ 0 ] NEW_LINE w1 = a [ previous ] [ 1 ] NEW_LINE w2 = a [ present ] [ 1 ] NEW_LINE