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.
Essentially checks to see if the difference between the two strings are odd and that k is odd. If this is the case, it is trivial to see that an even number of appends/deletions can be made to make the strings equal :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Append and Delete
You are viewing a single comment's thread. Return to all comments →
Essentially checks to see if the difference between the two strings are odd and that k is odd. If this is the case, it is trivial to see that an even number of appends/deletions can be made to make the strings equal :)