• Register

Recent questions tagged algorithm

0 votes
1 answer 9 views
Fibonacci series using recursion in c++ I need to write a code to calculate the Fibonacci series in c++. I need some guidance.
asked Nov 14 miki 1.4k points
0 votes
1 answer 20 views
0 votes
1 answer 11 views
Is there a standard algorithm or best practice on how to implement GetHashCode for my custom classes?
asked Aug 31 Sofi55 1.1k points
0 votes
1 answer 23 views
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.
asked Aug 19 Raphael Pacheco 4.9k points
0 votes
2 answers 19 views
0 votes
1 answer 49 views
Problem: I am trying to find the solution for below assignment: “Write a program to find the sum of following series 1^1+2^2+3^3”. 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.
asked Jul 11 Raphael Pacheco 4.9k points
2 votes
1 answer 178 views
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’t have any working code. “C program to find square root of a number without using sqrt function”. Can somebody help me in answering above question?
asked Mar 24 morrisBson 3.2k points
0 votes
1 answer 25 views
Problem: I am new and my logic is not so strong can any one give me right mathematical expression in linear programming? What is a mathematical expression in linear programming that maximizes or minimizes some quantity?
asked Feb 22 maddi86 5.4k points
0 votes
2 answers 194 views
Problems: Can anyone give the right solution The decision structure that has two possible paths of execution is known as _____? a. Single alternative b. Double alternative c. Dual alternative d. Two alternative
asked Feb 14 maddi86 5.4k points
0 votes
2 answers 36 views
Problems I am new in programming, can anyone give the right solution? In linear​ programming, choices available to a decision maker are called A. objectives. B. choice variables. C. decision variables. D. constraints.
asked Feb 13 maddi86 5.4k points
0 votes
2 answers 146 views
Problem : I have below doubts regarding sorting: What is the smallest possible depth of a leaf in a decision tree for a comparison sort? Does it change depending on the algorithm? Can anybody clear my doubts?
asked Dec 4, 2019 alecxe 7.5k points
To see more, click for the full list of questions or popular tags.