โ† Samsung questions
CodingReported in a candidate post, Jan 2020

Code for Segment Tree

Filed under Samsung

The question

Provide the implementation code for a Segment Tree and explain the difference between a Segment Tree and a Fenwick tree.

No write-up yet. Related questions below have one.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.