ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


Standard Algorithms Videos 19 videos

AP Computer Science 2.1 Standard Algorithms
432 Views

APCS: Standard Algorithms Drill 2, Problem 1. How much slower is InefficientSum than EfficientSum in the best case for an array of n elements?

AP Computer Science 2.5 Standard Algorithms
176 Views

In this computer science drill question, figure out which implementation will copy one array over to another.

AP Computer Science 3.3 Standard Algorithms
175 Views

AP Computer Science: Standard Algorithms Drill 3, Problem 3. What should go in "expression 1" to satisfy the conditional statement?

See All

AP Computer Science 1.5 Standard Algorithms 172 Views


Share It!


Description:

AP Computer Science 1.5 Standard Algorithms. What is the output of mystery(4)?

Language:
English Language

Transcript

00:00

Thank you We sneak And here's your smoke too Sure

00:05

brought to you by rikers in wow two times around

00:09

and we're already did Marie i consider the following code

00:13

segment public static All right what is the output of

00:19

mystery for No and let's go alright Well for this

00:26

we'll need to manually step through each call when the

00:28

original collars made The method makes a call to mystery

00:31

here with parameters three and two Former makes two more

00:36

calls the first one returning to in the second one

00:38

returning one The first call to mystery returns A total

00:43

of four second called a mystery instantly returns to that's

00:47

The original call The mystery returns four plus two times

00:49

two totaling eight Our answer is a next time Join

00:54

us while we explore more rikers while they explore more 00:00:56.644 --> [endTime] returns for more records one more record

Related Videos

AP Computer Science 1.2 GridWorld Case Study and APIs
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?

AP Computer Science 2.3 Classes and Objects
191 Views

AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism
204 Views

AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...

AP Computer Science 4.2 Standard Algorithms
191 Views

AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?