Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Docker
- 프로그래머스
- 오류
- ubuntu
- nvidia-smi
- Linux
- Python
- YOLO
- paramiko
- label
- pytorch
- 컨테이너
- pandas
- 기타 연주
- JSON
- VS Code
- pip
- C
- 채보
- OpenCV
- windows forms
- mysql
- SSH
- error
- Numpy
- C#
- C++
- 핑거스타일
- Visual Studio
- Selenium
Archives
- Today
- Total
목록vector (1)
기계는 거짓말하지 않는다
vector, priority_queue 정렬 비교
우선순위 큐에 template 타입을 자료형만 주게 되면 기본은 max heap 이다. 벡터의 경우 sort 호출 시 기본은 오름차순이다. #include #include #include #include using namespace std; int main() { vector v; priority_queue pq; v.push_back(10); v.push_back(5); v.push_back(20); sort(v.begin(), v.end()); pq.push(10); pq.push(5); pq.push(20); cout
C++
2021. 5. 11. 17:14