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.
it checks whether both are even or both are odd !
because if that happens to be true then (k - diff) will always be even and string can always be build. HOW ?
by appending then deleting or vice-versa.
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 →
it checks whether both are even or both are odd ! because if that happens to be true then (k - diff) will always be even and string can always be build. HOW ?
by appending then deleting or vice-versa.