Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leetcode205同构字符串 | Hexo #1

Open
zuodexin opened this issue Nov 8, 2020 · 1 comment
Open

leetcode205同构字符串 | Hexo #1

zuodexin opened this issue Nov 8, 2020 · 1 comment

Comments

@zuodexin
Copy link
Owner

zuodexin commented Nov 8, 2020

https://zuodexin.github.io/2020/11/08/leetcode205%E5%90%8C%E6%9E%84%E5%AD%97%E7%AC%A6%E4%B8%B2/

做这道题要先理解什么是同构字符串,以及字符的替换规则 用两个unordered_map来保存映射关系 注意maker_pair中的类型为引用类型 1234567891011121314151617181920212223242526class Solution {public: bool isIsomorphic(string s, string t) {

@zuodexin
Copy link
Owner Author

zuodexin commented Nov 8, 2020

试试评论系统

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant