10 2022 档案
摘要:神奇字符串 题解:模拟这个神奇字符串,然后直接统计1的个数即可 class Solution { public int magicalString(int n) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.ap
阅读全文
摘要:784. 字母大小写全排列 字母大小写全排列。 题解: 按题意模拟,DFS遍历string的每个下表字符,并对其按题意操作,遍历完添加到答案。 class Solution { public List<String> letterCasePermutation(String s) { char[]
阅读全文
摘要:参考: https://www.yuque.com/awescnb/user https://github.com/BNDong/Cnblogs-Theme-SimpleMemory
阅读全文