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

您好,归并求逆序对问题 #3

Closed
ghost opened this issue Apr 16, 2017 · 0 comments
Closed

您好,归并求逆序对问题 #3

ghost opened this issue Apr 16, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 16, 2017

你的方式会让相同的数也会算一对,怎么避免计算这个相同的数对呢?
我在if else把 aux[i - l] < aux[j - l] 改成 > ... 并且添加了处理相同数的else .
但是出现了更大的问题(很多数对不被计算 了)
请问该怎么处理呢?谢谢 :)

@ghost ghost closed this as completed Apr 16, 2017
This issue was closed.
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

0 participants