HackerRank::Algorithms::Strings::Bigger is Greater
There is a good function in "algortihm" library which handles the next permutation formation. Check the usage of that function below. It simply takes two arguments iterator first and the iterator last.
No comments:
Post a Comment