I have discussed how to merge sorted arrays into a single sorted array. This coding interview question is common with majority of tech companies. Not just Amazon, but Google, Facebook, Twitter, Netflix, Microsoft, basically any startup or a FANG company loves asking this.
You will be asked to merge two sorted arrays into a single sorted array in an optimized way. I have explained how this can be solved and how to approach the solution in an actual interview. I have also taught how to code the solution in C++. Github link for the code: https://github.com/thecodeskool/coding-solutions/blob/main/merge-two-arrays.cpp
This problem can be extended to merging n number of arrays, which we will discuss in the next part of the video.
Feel free to comment below for any queries or doubts!
You can also reach me at:
Instagram:
https://www.instagram.com/thecodeskool/
Twitter:
https://twitter.com/theCodeSkool
LinkedIn:
https://www.linkedin.com/in/deevankshu-garg-602501111/
Music from: https://youtu.be/T5o_0BoTvWg