12 ms·
next_permutation is in standard library (header algorithm).
by dzorz 15y ago
next_permutation is in standard library (header algorithm).
- makmanalp 15y agoFor the curious, STL <algorithm> is one of those things that you wish you knew ages ago. Usually my code is much cleaner after I run through it and replace relevant parts of it with STL stuff. http://www.cplusplus.com/reference/algorithm/ http://www.cplusplus.com/reference/algorithm/