Hackerrank 30 days of code Java Solution: Day 6: Lets Review


Given a string, , of length that is indexed from to , print its even-indexed and odd-indexed characters as space-separated strings on a single line (see the Sample below for more detail).

Note: is considered to be an even index.

Sample Input

Sample Output

Thanks For Reading. Like and Share 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *