Are we supposed to write a script to order the array too?

Instructions unclear.

That is one possible way to do it, but it isn’t the only way to do it.

So then no ordering is not necessary?

Nope, you can do the problem without any sorting. You just need to know where the new element would go if the array was sorted.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.