BackmediumStrings strings medium

CaseInsensitiveStringComparison Solution

Problem Statement

Given two strings, determine if the first string is equal to the second string ignoring any differences in case.

Example 1
Input
hello
Output
hello

Explanation: Case-insensitive comparison returns true.

Constraints

  • The input strings are in the range of 1-1000 characters.
  • The strings may contain any Unicode character.
  • The strings may contain leading/trailing spaces.
Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free