In Binary Search technique

how I insert an element into a sorted array with binarcy tech

hello @mohsin_khan you can insert the element at the last and then you can sort it again.
but if you want to insert the element by finding the position i the sorted format then you have to first find the position with the help of search in the sorted orgiginal array and then at position you insert the element and then you will shift the elements after that index in the array to their previous ith +1 location.
this is the whole procedure.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.