Auto Commit

This commit is contained in:
2020-03-30 19:07:45 -06:00
parent 350b8bd3d1
commit 9b1e707382
6 changed files with 25 additions and 21 deletions

12
HW10/partialPermutation.h Normal file
View File

@@ -0,0 +1,12 @@
//
// Created by Brady Bodily on 3/30/20.
//
#include <iostream>
#ifndef HW10_PARTIALPERMUTATION_H
#define HW10_PARTIALPERMUTATION_H
template<typename BidiIt>
bool next_partial_permutation(BidiIt first, BidiIt middle, BidiIt last) {
std::reverse(middle, last);
return std::next_permutation(first, last);
}
#endif //HW10_PARTIALPERMUTATION_H