Lily's Homework

  • + 0 comments

    Hi, I tried the above solution. However, I have some doubt. m[a[i]] = m[s[i]] a[i], a[m[s[i]]] = s[i], a[i] In the above code snippet, I had earlier tried with these two sentences swapped, which didn't give me a correct answer. I am not able to understand why swapping these statements made a difference. Can you please give me insights on this?