in this problem:

https://practice.geeksforgeeks.org/problems/merge-two-sorted-arrays/0

solution is accepted using arrays.

https://ide.geeksforgeeks.org/KPtW2E47MA

but with vector it is giving TIME LIMIT EXCEED

https://ide.geeksforgeeks.org/qPceaYA12v

i have tried declearing vectors both inside and outside T loop ;