The advantages and disadvantages of implementing data structures with Pointers in C++

Правка en1, от dsdp, 2025-07-12 04:05:38

In C++, Currently, I have seen some code that implements segment trees/balanced trees using Pointers.

So, what are the respective advantages of using Pointers and not using them (constants, debugging difficulty, etc.)? I don't quite understand.

Or is there no difference? It's just a matter of personal style.

Some of the responses I have received so far are conflicting, so I came to the CodeForces community for help.

I would like to express our sincere gratitude to all in advance!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dsdp 2025-07-12 04:05:38 581 Initial revision (published)