Skip to main content
Loading page content
Explore
Learnings
Mental Math
Dashboard
More
Algo
Flow
Visualizers
Learnings
Quizzes
Mental Math
Dashboard
Log in
Sign up
Loading quiz challenge
Back to Visualizer
Question 1 of 5
Insertion
• Insert in Sorted Array
What is the time complexity of inserting into a sorted array if binary search is used to find the position but shifting is still required?
A
O(log n)
B
O(n)
C
O(1)
D
O(n log n)