Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

LIS on Pairs ??

Правка en1, от svg_af, 2016-02-24 00:07:54

Hello There

So i found this Problem where i have to find the LIS of 10^5 pairs of integers

a pair is greater than another pair if x1<x2 and y1<y2 strictly

now finding LIS using a segment tree for such a large input is no issue ... but sorting the pairs kinda confused me

any ideas or hints how should i think about this problem ?

Теги lis, pair, sort

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский svg_af 2016-02-24 00:07:54 397 Initial revision (published)