« first day (1738 days earlier)      last day (690 days later) » 

10:41 AM
Hey guys, I have this piece of code that calculates the Longest Arithmetic Progressin in an Array. I have to test 100 cases with it, but i am having problems with it
 
2 messages moved from Lounge<C++>
 
11:11 AM
So, i asked it guys
0
Q: LAP algorithm not working with large numbers

Questionificationy guys! #include <iostream> #include <fstream> #include <algorithm> using namespace std; long int lenghtOfLongestAP(long int set[],long int n) { if (n <= 2) return n; long int L[n][n]; long int llap = 2; for (long int i = 0; i < n; i++) L[i][n-1] = 2; for (long ...

 
2 messages moved from Lounge<C++>
 

« first day (1738 days earlier)      last day (690 days later) »