Answer this question by using java language and type the answer. So that I copy it.
Problem : Programs A and B are analyzed and found to have worst-case running times no greater than and N2, respectively.
a. Which program has the better guarantee on running time, for large values of N (N 10,00 Explain your answer.
b. Which program has the better guarantee on running time, for small values of N (N<100) Explain your answer.