ak1389's blog

By ak1389, history, 4 years ago, In English

I have been provided N pairs of numbers where each pair (Ai,Bi) represents a line y=Ai*x+Bi . I want to find out the total number of triangles which can be constructed using these lines and HOW MANY TRIANGLES IS EACH LINE A PART OF.

I found the first part of the problem on a post on another platform, but am clueless as far as the second part is concerned. Any help'd be appreciated.

Thanks

Full text and comments »

  • Vote: I like it
  • -12
  • Vote: I do not like it