Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- C++
- 딥러닝
- Windows10
- linux
- 시스템프로그래밍
- 운영체제
- 턱걸이
- Windows 10
- c
- OpenCV
- 공부
- 백준
- C언어
- 알고리즘
- error
- 회귀
- 리눅스
- 프로세스
- shell
- 텐서플로우
- 프로그래밍
- 백준알고리즘
- 코딩
- 학습
- python
- 영상처리
- TensorFlow
- 쉘
- CV
- Computer Vision
Archives
- Today
- Total
목록sort (1)
줘이리의 인생적기

sort 알고리즘은 오름차순, 내림차순, 사용자가 정의한 순서로 정렬해주는 알고리즘. default는 오름차순, 평균 시간복잡도는 퀵 정렬 기반이라 n*logn. sort 알고리즘은 헤더파일 안에 있음 #include 을 추가해야 한다. 원형 #array sort(array, array+n);//default 오름차순 sort(array, array+n, 함수); #vector sort(vector.begin(), vector.end()); // default 오름차순 sort(vector.begin(), vector.end(), less()); //오름차순 sort(vector.begin(), vector.end(), greater()); //내림차순 sort(vector.begin(), vector...
공부/C++ STL
2020. 7. 28. 08:00