We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://chunchengwei.github.io/shua-ti/yi-ge-you-guan-fen-jie-zhi-yin-shu-de-mian-shi-ti/
问题:给定两个字符串s、m,初始长度都为1。定义两种操作:
m = s, s = 2s s = s + m
问给定长度L时,最少要经过多次操作1和2,才能让s的长度为L。 解题思路:我们可以发现,无论执行多少个操作1和操作2都可以,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://chunchengwei.github.io/shua-ti/yi-ge-you-guan-fen-jie-zhi-yin-shu-de-mian-shi-ti/
问题:给定两个字符串s、m,初始长度都为1。定义两种操作:
m = s, s = 2s
s = s + m
问给定长度L时,最少要经过多次操作1和2,才能让s的长度为L。
解题思路:我们可以发现,无论执行多少个操作1和操作2都可以,
The text was updated successfully, but these errors were encountered: