Search found 1 match

by shashank.neo
Thu Oct 16, 2008 3:13 am
Forum: Volume 4 (400-499)
Topic: 481 - What Goes Up
Replies: 82
Views: 28037

481 What goes up --- help needed!

Can anyone tell why i am getting WA .I am using (nlogk) algo for it.
Here is my code.

#include<iostream>
using namespace std;
int a[50000],p[50000],pt[50000],i,j,k;
int srch(int b)
{
int m;
for(m=j-1;m>=0;m--)
{
if(a[m]==b)
break;
}
return m;
}
void prnpath(int ind)
{
if(ind==-1)
return ...

Go to advanced search