Step 1: Start with first element 10, LIS length is 1
LIS lengths: [1, _, _, _, _, _, _, _]
Why: Each element alone is a subsequence of length 1
Step 2: Check 22: 22 > 10, so LIS at 22 is LIS at 10 + 1 = 2
LIS lengths: [1, 2, _, _, _, _, _, _]
Why: 22 can extend the subsequence ending at 10
Step 3: Check 9: 9 is not greater than 10 or 22, so LIS at 9 is 1
LIS lengths: [1, 2, 1, _, _, _, _, _]
Why: 9 starts a new subsequence
Step 4: Check 33: 33 > 10 (LIS=1), 33 > 22 (LIS=2), 33 > 9 (LIS=1), max LIS before 33 is 2, so LIS at 33 is 3
LIS lengths: [1, 2, 1, 3, _, _, _, _]
Why: 33 extends the longest subsequence ending before it
Step 5: Check 21: 21 > 10 (LIS=1), 21 < 22, 21 > 9 (LIS=1), max LIS before 21 is 2 (from 10 or 9?), so LIS at 21 is 3
LIS lengths: [1, 2, 1, 3, 3, _, _, _]
Why: 21 extends subsequence ending at 10 or 9
Step 6: Check 50: 50 > 10 (1), 50 > 22 (2), 50 > 9 (1), 50 > 33 (3), 50 > 21 (3), max LIS before 50 is 3, so LIS at 50 is 4
LIS lengths: [1, 2, 1, 3, 3, 4, _, _]
Why: 50 extends the longest subsequence ending before it
Step 7: Check 41: 41 > 10 (1), 41 > 22 (2), 41 > 9 (1), 41 > 33 (3), 41 > 21 (3), 41 < 50, max LIS before 41 is 3, so LIS at 41 is 4
LIS lengths: [1, 2, 1, 3, 3, 4, 4, _]
Why: 41 extends subsequence ending at 33 or 21
Step 8: Check 60: 60 > all previous elements, max LIS before 60 is 4 (from 50 or 41), so LIS at 60 is 5
LIS lengths: [1, 2, 1, 3, 3, 4, 4, 5]
Why: 60 extends the longest subsequence ending before it
Result: Longest Increasing Subsequence length is 5