Search found 4 matches

by muneeb
Fri Dec 28, 2012 9:19 am
Forum: Volume 6 (600-699)
Topic: 601 - The PATH
Replies: 20
Views: 10090

the path

please help me... i get the message WRONG ANSWER, when submit cod in acm..please tell me the problem if you found....thanx...

#include<iostream>
#include<string>
using namespace std;
int pathVisit();
int size;
char **path;
int **ref;
int ret;
int pathVisit()
{
for(int i=0;i<size;i++)
{
if(ref ...
by muneeb
Thu Dec 27, 2012 12:29 pm
Forum: Volume 6 (600-699)
Topic: 601 - The PATH
Replies: 20
Views: 10090

601 the path..

ACm compiler give ma wrong answer, i can't found out my error so please give ma my mistake if you found..

#include<iostream>
#include<string>
using namespace std;
int pathVisit();
int size;
char **path;
int **ref;
int ret;
int pathVisit()
{
for(int i=0;i<size;i++)
{
if(ref [size-1]==1 && ref [0]==1 ...
by muneeb
Wed Dec 26, 2012 3:19 pm
Forum: Volume 6 (600-699)
Topic: 601 - The PATH
Replies: 20
Views: 10090

The path

#include<iostream>
#include<string>
using namespace std;
int pathVisit();
int size;
char **path;
int **ref;
int ret;
int pathVisit()
{
for(int i=0;i<size;i++)
{
if(ref [size-1]==1 && ref [0]==1)
{
ret=1;
return ret;
}
if(ref [size-1]==1 && ref [0]==0) //U W
{
if(i==size-1)
{
if(ref [1 ...
by muneeb
Wed Dec 26, 2012 3:16 pm
Forum: Volume 6 (600-699)
Topic: 601 - The PATH
Replies: 20
Views: 10090

The path

#include<iostream>
#include<string>
using namespace std;
int pathVisit();
int size;
char **path;
int **ref;
int ret;
int pathVisit()
{
for(int i=0;i<size;i++)
{
if(ref [size-1]==1 && ref [0]==1)
{
ret=1;
return ret;
}
if(ref [size-1]==1 && ref [0]==0) //U W
{
if(i==size-1)
{
if(ref [1 ...

Go to advanced search