kennymkchan / interview-questions-in-javascript

A mostly reasonable collection of technical software development interview questions solved in Javascript
MIT License
3.61k stars 441 forks source link

Code bug fix: 2.3 Check if a given string is a isomorphic #33

Closed Fundebug closed 5 years ago

Fundebug commented 6 years ago

The previous solution is not correct, for example "aa" and "bb" are not isomorphic, while the result it true. So I update the code to add extra checking statement. The updated solution can pass the same question at leetcode: https://leetcode.com/problems/isomorphic-strings/

kennymkchan commented 5 years ago

@Fundebug Thanks for the fix!