We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I have a doubt about this exercise. this is my func that show the output as the example but it doesn't pass , and I don't understand why.( I completed the exercise with the help of this forum , but I am trying to understand why the answer is an array and not a string as the example.)
def reverseArray(a):
b= [str(i) for i in a]
c = b[::-1]
result = " ".join(c)
return result
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
Hello everyone ,
I have a doubt about this exercise. this is my func that show the output as the example but it doesn't pass , and I don't understand why.( I completed the exercise with the help of this forum , but I am trying to understand why the answer is an array and not a string as the example.)