We don't bite newbies here... much | |
PerlMonks |
Re^3: Puzzle: Longest Increasing Sequenceby ikegami (Patriarch) |
on Apr 17, 2006 at 16:41 UTC ( [id://543873]=note: print w/replies, xml ) | Need Help?? |
It is indeed a bug fix, not a typo. The other thing I did was to clean up the code that builds the return value by using unshift. I no longer needed a counting loop, so I removed the counter variable ("i") and replaced the counting loop with a while loop (implemented as a for loop). "temp" was a bad name — even i, j, etc would be better since temp holds an index — so I renamed it to "i".
In Section
Seekers of Perl Wisdom
|
|