# Recent questions tagged algorithm

Fibonacci series using recursion in c++ I need to write a code to calculate the Fibonacci series in c++. I need some guidance.
Is there a standard algorithm or best practice on how to implement GetHashCode for my custom classes?
Problem: I am new to programming. I want to know the difference between Divide and Conquer Algorithms and Dynamic Programming Algorithms. On which basis the two terms can be termed different? I am unable to understand the basic difference between them. I have searched the differences online but I did not find any satisfactory answer to this.
Problem: I am trying to find the solution for below assignment: &ldquo;Write a program to find the sum of following series 1^1+2^2+3^3&rdquo;. So I am looking for someone who can give me the idea of a very efficient algorithm for large n (for example 10^10) to find a sum of the ... ++) t=((long long)t*i)%m; sum=(sum+t)%m; } printf("%d\n",sum); } Kindly help me in my above mentioned assignment.
Problem : I have few years of experience in working with C programming. Now I am preparing for the interview and while preparing for it I came to below question for which I don&rsquo;t have any working code. &ldquo;C program to find square root of a number without using sqrt function&rdquo;. Can somebody help me in answering above question?