Блог пользователя RASEL_MEYA

Автор RASEL_MEYA, история, 4 года назад, По-английски

I have been learning the two-pointer algorithm for a few days now. However, it is difficult to understand which of the two-pointer related problems in CF are more easier. So, if someone suggested a basic or simple problems related to two-points, it would be easier for me to understand the two-pointer algorithm better.

plz... suggest me, any problem link.

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

2 pointers is just taking a pointer called i and a pointer called j and moving it as per your logic..

There really is no other concept involved.

https://codeforces.net/problemset/problem/253/B

https://codeforces.net/contest/1036/problem/D

Use the problemset to find more

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Triplets

another good problem on twopointers/binarysearch