Implement a case-insensitive string comparison function. Given two strings s1 and s2, compare them lexicographically ignoring case, and return -1 if s1 < s2, 0 if s1 == s2, and 1 if s1 > s2.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.