Assignment1-Basic Thinking
Assignment1-Basic Thinking
(Basic Thinking)
Apply basic commonsense/math/data structures to solve the following
problems.
b) Write an efficient function to solve the above problem if the given array is read only.
What are the time and space complexities of your solution?