i got the Fibonacci Numbers algorithm :
#include <iostream>
using namespace std;
int fib (int n)
{
if (n<3)
return (1);
else
return (fib(n-2)+fib(n-1));
}
int main()
{
cout<<"Fibbonac iu Numbers: 1, 1, 2, 3, 5, 8, 13, 21,...\n"<<endl ;
int n, Result;
cout<<"n = "; cin>>n;...
User Profile
Collapse
-
Application Compute Time
-
I'm new in data structure and I don't know how to solve this problem.
All I need is a entire c++ pseudo-code about this problem.
Thanks a lot ! -
|5|_|_|_|_|
|_|4|_|7|_|
|_|_|_|_|_|
|1|_|3|_|_|
|_|_|_|_|5|
the matrix looks like this
plz I need itLeave a comment:
-
i need to convert a sparse matrix T(5,5) on a vector V(6)
i need for the pseudo-codeLeave a comment:
-
How To Make A Vector From A Sparse Matrix
I have this sparse matrix
and I need to make a vector V(6)={5,4,7,1,3 ,2}Code:|5| | | | | | |4| |7| | | | | | | | |1| |3| | | | | | | |2|
I DONT KNOW HOW TO DO THIS IN C++
CAN YOU HELP ME PLZ
No activity results to display
Show More
Leave a comment: