Search found 3 matches

by masumasu
Tue Feb 15, 2005 8:33 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14669

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
by masumasu
Sat Feb 12, 2005 6:34 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14669

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 displaytree(int treeheight...
by masumasu
Sat Dec 11, 2004 10:20 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 24158

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;i++) { sumfrom...

Go to advanced search