Dev
Mentor
Coach Interview AI
Mock Interview AI
Coding Problems
Blog
Pricing
Toggle theme
Sign In
Get Started
Toggle theme
Loading...
For the best coding experience, use a desktop browser.
Easy
Hash Table
Isomorphic Strings
Two strings are isomorphic if characters can be replaced to get the other.
Examples
Input:
s = "egg", t = "add"
Output:
true
Sample Test Cases
Case 1 Input:
"egg" "add"
Expected:
true
Case 2 Input:
"foo" "bar"
Expected:
false
Reset
Run
Submit
Loading editor...
Test Case
Output
Submission
Case 1 Input:
"egg" "add"
Expected:
true
Case 2 Input:
"foo" "bar"
Expected:
false