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

59 #12

Open
happysmile12321 opened this issue Feb 25, 2024 · 0 comments
Open

59 #12

happysmile12321 opened this issue Feb 25, 2024 · 0 comments

Comments

@happysmile12321
Copy link
Owner

happysmile12321 commented Feb 25, 2024

这道题有两个地方不好想,一个是offset,一个是n/2。
1.为什么就一定是n/2,想不明白?
2.为什么是<n-offset?
其实可以用数学思想:"由特殊到一般"来想,举个简单的例子就可以明白了。
假如n就等于4,这样一套,这些索引就可以确定了。

还有,为什么i代表行,j代表列,找一个二维数组遍历一下就知道了。

还有,这道题有个隐藏的,就是对奇数的处理。

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

No branches or pull requests

1 participant