restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,11 @@
template <class C>
void insertionsort (C& a) {
for (int i=1; i<a.size(); i=i+1) {
// i Elemente sind sortiert
int j=i;
while (j>0 && a[j-1]>a[j]) {
std::swap(a[j], a[j-1]);
j=j-1;
}
}
}