You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Convert both strings into two vectors of sorted characters. Then compare both vectors. Compare first with 2nd to check if any character in vec1 is less than vec2. If it is, s1 does not break s2. Then compare second with first to check if any character in vec2 is less than vec1. If it is, s2 does not break s1. If s1 does break s2, no need to do 2nd comparison, just return true.