subject

The following function returns a random string of length n. what is the order of growth of its running time as a function of n?
public static string random(int n) {
if (n == 0) return "";
int r = stdrandom. uniform(26); // between 0 and 25
char c = 'a' + r; // between 'a' and 'z'
return random(n/2) + c + random(n - n/2 - 1);

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
You know the right answer?
The following function returns a random string of length n. what is the order of growth of its runni...
Questions
question
Biology, 26.08.2021 22:30
question
Mathematics, 26.08.2021 22:30
question
Mathematics, 26.08.2021 22:30