devarshi09's blog

By devarshi09, history, 5 years ago, In English

I am getting WA in Spoj Problem ,Build the fence . Link to the problem : Link to my code : . Can anyone help me to find the error or give any counter test case. I used graham scan algorithm to make my code efficient.

  • Vote: I like it
  • 0
  • Vote: I do not like it

5 years ago, # |
  Vote: I like it +14 Vote: I do not like it

Lmao are you fucking kidding me. You say like two words about your solution. Do you even expect someone to answer?

Your code is filled with crappy shorthands which are impossible to parse for anyone else. What is more, your code is not even indented properly.

How do you even think someone is going to parse what you might mean by

bool cmp(pair<int,pair<int,int> > a,pair<int,pair<int,int> > b){
    if( &&! return<;
    if( return<;

or maybe[0].fi;[0];[0];[n-1].fi;[n-1];[n-1];