John S.

asked • 01/19/24

Array reversal in O( log n) time.

Is reversing an array in O( log n) possible? I know it's possible with an O( log n) time lookup, but I don't know if it's possible with an O(1) time lookup. I also don't know if there is a "easy" solution with an O( log n) time lookup, because mine is quite complicated ( +- 1000 lines of code).

1 Expert Answer

By:

Jessica M. answered • 01/20/24

Tutor
New to Wyzant

PhD with 5+ years of tutoring Computer Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.