Skip to main content
Loading page content
Algo
Flow
Visualizers
Mental Math
Dashboard
Log in
Sign up
Back to Visualizer
Question 1 of 5
Segment Tree Operations
• Build Segment Tree
What is the time complexity of building a Segment Tree from an array of n elements?
A
O(log n)
B
O(n)
C
O(n log n)
D
O(n^2)