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

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

Let's say that we have n Rectangles with known coordinates and m Points with known coordinates.
How to count the number of points that lie inside each Rectangle given that the coordinates are integers (>= 0, <= 106) and n & m <= 106.
Surely, the complexity of O(n*m) is not desirable!
I think of Segment Tree but don't know how and if it's better or not!

May you help me, please?

Полный текст и комментарии »

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

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

Is there any advice, materials, or resources on how to enhance the mathematical thinking in kids (e.g. since age 6)?

Полный текст и комментарии »

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