Wednesday, January 29, 2025
Concatenation of Array

Updated: January 2025
Concatenation of Array
easy
💡 Intuition
- The idea is to create an array of length
2n
and update the values at indicesi
andi + n
withnum[i]
while iterating through the existing array.
🚀 Solution
go
⏳ Time Complexity
- Since we are taking single loop for the array of length n, the time complexity will be
O(n)