Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Array sorting

Rajaram PerumalRajaram Perumal Member Posts: 1

I have two dimensional integer array x, y as below

{1160, 0},
{1560, 400},
{11940, 10380},
{12480, 540},
{12540, 60},
{12600, 60},
{12720, 120},
{13120, 400},
{13380, 260},
{13680, 300},
{14000, 320}
I need to pick {13120, 400} since x is highest as well as y is highest when comparing with other y elements matching with x highest value.

Your help is greatly appreciated. Thanks.

Sign In or Register to comment.