hi thans to u
even though i cant figure out how u got that input for which my prog didnt work ......... i corrected it and its accepted now.........
again thans
Search found 3 matches
- Tue Feb 15, 2005 8:33 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32621
- Sat Feb 12, 2005 6:34 pm
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32621
112 WA Please help me.....Wrked for all the test cases given
#include<iostream>
#include<cstring>
#include<stdlib.h>
#include<stdio.h>
using namespace std;
class linkedlist
{
public:
int value;
char *path;
linkedlist *next;
};
class linkhead
{
public :
int level;
linkedlist *next;
linkhead()
{
next = NULL;
}
};
linkhead **tree;
void ...
#include<cstring>
#include<stdlib.h>
#include<stdio.h>
using namespace std;
class linkedlist
{
public:
int value;
char *path;
linkedlist *next;
};
class linkhead
{
public :
int level;
linkedlist *next;
linkhead()
{
next = NULL;
}
};
linkhead **tree;
void ...
- Sat Dec 11, 2004 10:20 am
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 52090
Problem in 108 with my solution ...plzzzzzzzz help
hi i am having problem in 108 ...plzzzzzzzz help dont know whjere
C++
#include <iostream>
using namespace std;
int **sumfromindex,**values;
int main()
{
int Numrows;
int maxsum = -500;
cin >> Numrows;
values = new int*[Numrows];
sumfromindex = new int*[Numrows];
for (int i=0;i<Numrows ...
C++
#include <iostream>
using namespace std;
int **sumfromindex,**values;
int main()
{
int Numrows;
int maxsum = -500;
cin >> Numrows;
values = new int*[Numrows];
sumfromindex = new int*[Numrows];
for (int i=0;i<Numrows ...