Generate all subsequences and check which increasing ones are longest.
An array of length has subsequences. Checking each for increasing order is .
Total: . Far too slow.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The trap
Generate all subsequences and check which increasing ones are longest.
An array of length has subsequences. Checking each for increasing order is .
Total: . Far too slow.