Black's Document Docs
Powered by

# Tag: next permutation

See all tags.

Algorithms
Next Permutation Problem

Tìm hoán vị lớn liền sau hoán vị đầu vào. Nếu hoán vị hiện tại là lớn nhất thì sẽ quay trở lại hoán vị nhỏ nhất (với các số sắp xếp tăng dần).

© Copyright 2023. All rights reserved.