pages:
- 1
Azure SAYS
Hello Guys
i think that this problem has some wrong testcases because if i use :
static void merg(int x , int y){
int px = find(x);
int py = find(y);
par[py] = px;
}
result is accept but if i use :
static void merg(int x , int y){
int px = find(x);
int py = find(y);
par[px] = py; /// !!!!!
}
result is run time;
Login please!
In order to post something you must login first. You can use the form in the top of this page.