how to optimze this code ?

Pages: 12
@ne555 thanks for the help in this, I have learnt a very useful data structure. for everyone else, still getting a little confused, please refer to ne555's comments and this source that helped me a little too :) https://stackoverflow.com/questions/48132041/find-closest-number-to-p-in-a-given-range-of-array
Topic archived. No new replies allowed.
Pages: 12