Search found 78 matches

by mido
Sat Jun 22, 2002 11:40 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 34385

Here's a cleaner one. This got me a wrong answer..Any tips?: [cpp] #include <iostream.h> #include <string.h> char *str; char char_arr[] = "AEHIJLMOSTUVWXYZ12358"; char rev_arr[] = "A3HILJMO2TUVWXY51SEZ8"; bool Check_P(char*& x) { int i; for (i=0;i<(strlen(x)/2);i++) if (x !=x[strlen(x)-i-1]) return ...
by mido
Sat Jun 22, 2002 10:48 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 34385

401 revisited

I get an invalid memory reference with this. Please check it out.. :-? : [cpp] #include <iostream.h> #include <string.h> char* str; char char_arr[] = "AEHIJLMOSTUVWXYZ12358"; char rev_arr[] = "A3HILJMO2TUVWXY51SEZ8"; void read_str(char*& x) { char *temp,*temp2; char ch; while (!cin.eof() && cin.get(...
by mido
Sat Jun 22, 2002 1:54 am
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 18473

Any tips for problem 307?

Nothing else to say...it's just that I have been working on this thing for some time...no success till now...trying to use recursion to solve this problem.Any suggestions? :-?

Go to advanced search