Solution For HackerRank Problem: Concatenate an array with itself
Concatenate an array with itself, is a HackerRank problem from Arrays in Bash subdomain. In this post we will see how we can solve this challenge in Sh
Given a list of countries, each on a new line, your task is to read them into an array. Then, concatenate the array with itself (twice) - so that you have a total of three repetitions of the original array - and then display the entire concatenated array, with a space between each of the countries' ....
You can find the full details of the problem Concatenate an array with itself at HackerRank
Solution: Please check the concatenate-an-array-with-itself.sh snippet for the solution.
This solution originally posted at: Github by @srgnk