Skip to content

Commit 5c8c9f5

Browse files
committed
fix typo on printing longest subsequence found
1 parent fbdee2e commit 5c8c9f5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

longestAscendingSubsequence/longestAscendingSubsequence.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void determine_max_length_and_display_sequence(IntegerSequence input, Subsequenc
9393
}
9494

9595
// read stack
96-
for (; stackTop > 0;)
96+
for (; stackTop >= 0;)
9797
{
9898
printf("%d, ", resultStack[stackTop--]);
9999
}

longestAscendingSubsequence/main

-8 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)