Query strings suffix comparison

Правка en1, от nguyenquocthao00, 2024-04-25 17:27:37

Given 2 strings s1 and s2, and a list of queries. Each query has 2 values: i,j; for each query you need to check if s1[i:] >= s2[j:].
How to do this efficiently?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский nguyenquocthao00 2024-04-25 17:39:04 119
en1 Английский nguyenquocthao00 2024-04-25 17:27:37 199 Initial revision (published)