My code gives the output for the following inputs as..
12 12
12 12
1. Length of longest match: 2
this is a test
this is is a a test
2. Length of longest match: 4
76.67 67
67 67 76
3. Length of longest match: 2
(\n)
(\n)
4. Blank!
(\n)
asd
5. Blank!
(\n)
(space)
6. Blank!
(space ...
Search found 6 matches
- Tue May 11, 2004 7:52 am
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34631
- Wed May 05, 2004 7:44 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34631
Can anyone help me find the reason for WA?? : 10100
My code gives the output for the following inputs as..
12 12
12 12
1. Length of longest match: 2
this is a test
this is is a a test
2. Length of longest match: 4
76.67 67
67 67 76
3. Length of longest match: 2
(\n)
(\n)
4. Blank!
(\n)
asd
5. Blank!
(\n)
(space)
6. Blank!
(space)
(space)
7 ...
12 12
12 12
1. Length of longest match: 2
this is a test
this is is a a test
2. Length of longest match: 4
76.67 67
67 67 76
3. Length of longest match: 2
(\n)
(\n)
4. Blank!
(\n)
asd
5. Blank!
(\n)
(space)
6. Blank!
(space)
(space)
7 ...
- Mon Jun 24, 2002 8:46 pm
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 57998
- Mon Jun 24, 2002 6:57 pm
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 57998
- Sat Jun 22, 2002 12:09 am
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 57998
Help me correct the error??
I submitted the code shown below, and received a WA . Can anyone help me in finding out where I went wrong???
[cpp]
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>
int isPalindrome(char input[])
{
int strlength;
strlength ...
[cpp]
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>
int isPalindrome(char input[])
{
int strlength;
strlength ...
- Fri Jun 21, 2002 10:36 pm
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 57998
401 : Can anyone help me??
I submitted the code shown below, and received a WA :( . Can anyone help me in finding out where I went wrong???
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>
int isPalindrome(char input[])
{
int strlength;
strlength = strlen(input ...
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>
int isPalindrome(char input[])
{
int strlength;
strlength = strlen(input ...