题目: 题解:
class Solution {
public:bool isIsomorphic(string s, string t) {unordered_map<char, char> s2t;unordered_map<char, char> t2s;int len s.length();for (int i 0; i < len; i) {char x s[i], y t[i];if ((s2t.coun…
众所周知,在 UTF-8 编码中,中文字符通常占用 3 个字节:
import java.nio.charset.StandardCharsets;/*** author shenyang* version 1.0* info untitled* since 2024/6/30 上午9:42*/
public class Test {public static void main(String[] args) {Stri…