Determine if Two Strings Are Close
Two strings are considered close if you can attain one from the other using the following operations:
Operation 1: Swap any two existing characters. Operation 2: Transform every occurrence of one existing character into another existing character. Given two strings, s and t, return true if word1 and word2 are close, and false otherwise.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)