摘要:
进制转换,然后判断是否是回文 阅读全文
摘要:
给你一串数字(≤12个),每个数字可以对应3个字母,求生成的所有字符串里,在字典内的有哪些。 我做的时候想的是字典树(Trie 树),模拟数串生成的所有字符串,然后在字典树里查找一下。 官方题解里说可以二分,还可以把字典全部转为数字,总共就5000个,这就是逆向思维。 阅读全文
摘要:
A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recog 阅读全文