Answer:
No you can not tell that recursion is ever required to solve a problem.
Recursion is required when in the problem, the solution of the input depends on the solution of the subsets of the input.
Iteration is also another form of repetitive approach we follow to solve that kind of problems.
But the difference between recursion and iteration is :
- In recursion we call the function repeatedly to return the result to next level.
- In iteration certain bunch of instructions in a loop are executed until certain conditions met.
Explanation:
For example in the Fibonacci sequence problem, to find , we need to compute and before that.
- In case of recursion we just call the method Fibonacci(n) repeatedly only changing the parameter Fibonacci(n-1), that calculates the value and return it.
Fibonacci(n)
1. if(n==0 or n==1)
2. return 1.
3.else
4. return( Fibonacci(n-1)+Fibonacci(n-1) )
- But in case of iteration we run a loop for i=2 to n, within which we add the value of current and to find the value of
Fibonacci(n)
1. if(n<=2)
2. result = 1
3. else
4. result1 =1 and result2=1.
5. { result = result1 +result2.
6. result1= result2.
7. result2 = result.
8. }
9. output result.
If your social media accounts are public, college admissions representatives can look at your social media activity when deciding whether or not to accept you at their school.
<h3>What is a public social media account?</h3>
Public social media account is also known as the open account, in which any people can check the person's post and like and share the post. Basically, famous people like to keep their account public to gain more publicity.
Thus, option D is correct.
For more details about Public social media account, click here:
brainly.com/question/23378133
#SPJ1
The URL is translated to an IP address, using a domain name server on the Internet. The browser then sends a request to the web server at that IP address. The server replies by sending the file, usually a web page to your IP address. The browser takes in that file, then delivers it into what you see on your screen in your browser.
Answer:
provide electricity .
Explanation:
The LED light glows when current flows through it .
<em><u>Additional</u></em><em><u> </u></em><em><u>i</u></em><em><u>n</u></em><em><u>f</u></em><em><u>o</u></em><em><u>r</u></em><em><u>m</u></em><em><u>a</u></em><em><u>t</u></em><em><u>i</u></em><em><u>o</u></em><em><u>n</u></em>
- The full form of LED is light emitting diode .
- It is a semi conductor .
- It has many advantages as it uses less amount of current .