Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 661 Bytes

File metadata and controls

11 lines (8 loc) · 661 Bytes

Insert to Middle of an Array

This challenge to write a function receive an array and number you want to insert it in the middle of array Without using any of the built-in methods available to your language, return an array with the new value added at the middle index.

Whiteboard Process

insertShiftArray

Approach & Efficiency

I learnd more about deep delay with type casting process and enhance my logic about for loop and more thinking about arrays, every challenge I learned more and more from my mistakes.

Big O

  • Time => N(O)