Suppose you are logged into a SPARCstation in the lab and you type the following unix command.
ls
Suppose unix types back the following:
test.c primes.c
Now suppose you type:
mv test.c mytest.c
and then
ls
What does unix type back this time?
Note: Are you confused by Question 1? Look at Bob Thomas's Unix quick reference (1/2 page), and if you have more time, then at the COS111 Unix cheatsheet (4-5 pages).
Note that in class Prof. LaPaugh solved this problem using a program that uses recursion. But strictly speaking, you don't need recursion to solve this problem.
Write a program that defines an array of 10000 integers, gets values for those 10000 integers from the user, and then computes the length of the longest increasing subarray among these integers.