BackeasyStrings Swiggy

Anagram Verifier Solution

Problem Statement

A security system compares two access codes. Two codes are 'equivalent' if one can be rearranged to form the other. Check if the two given codes are equivalent.

Example 1
Input
listen silent
Output
true

Explanation: Same characters, different order.

Constraints

  • 1 <= s.length, t.length <= 5 * 10^4
  • s and t consist of lowercase English letters.
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