← Back to problems
UNSW COMP2521 · hard

24T2 Q9 — Longest increasing run

stdin: a list of ints. Print the longest contiguous strictly-increasing sublist of length ≥ 2 (earliest on ties), space-separated. If there is no increasing pair, print NONE.


Single-file C (gcc -O0 -Wall). Self-contained reframing of the exam's ADT-completion question. From COMP2521 24T2 Sample.