Skip to content

Instantly share code, notes, and snippets.

View solome's full-sized avatar
🐼
Busy creating bugs ...

掬一捧 solome

🐼
Busy creating bugs ...
View GitHub Profile
@solome
solome / SelectionSort.cpp
Last active August 30, 2018 03:15
SelectionSort
//选择排序
template <typename ElemType>
static void SelectionSort(ElemType list[], int start, int end) {
for (int i = start; i <= end - 1; ++i) {
int max = i;
for (int j = i + 1; j <= end; ++j)
if (list[j] > list[max]) max = j;
if (max != i)
Swap<ElemType>(list[i], list[max]);
}
@solome
solome / css.style
Created August 30, 2018 09:19
[CSS 居中] #css#
.foo {
position: absolute;
left: 50%;
transform: translateX(-50%);
}