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 see that i, and j are set by the input string. I also see that beautiful days is an int and set to zero. where I get lost is the for integer in i...j. int2reverse and reversedNum don't look like they get set to me. Where do they get their values from? I don't understand how the input value of i and j get into the for integer in i..j{}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
I see that i, and j are set by the input string. I also see that beautiful days is an int and set to zero. where I get lost is the for integer in i...j. int2reverse and reversedNum don't look like they get set to me. Where do they get their values from? I don't understand how the input value of i and j get into the
for integer in i..j{}