일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 선형대수
- 알고리즘
- 프로그래머스
- omscs
- 코딩테스트
- 방송통신대학교
- 방통대
- LV1
- 주정부이민
- zeros
- EOI
- Plotting
- 매트랩
- Deep learning
- 머신러닝
- machine learning
- 캐나다 영주권
- 개발자
- 기본
- 마니토바
- mpnp
- 조지아텍
- C++
- leetcode
- LAA
- 온라인석사
- 컴퓨터과학과
- cpp
- MATLAB
- 딥러닝
- Today
- Total
목록개발 로그/자료구조 (3)
Krononberg
#include using namespace std; int binary_search(int arr[], int size, int target){ int left = 0; int right = size - 1; while (left
#include using namespace std; int partition(int arr[], int low, int high){ int pivot = arr[high]; int i = low - 1; for (int j = low; j < high; j++){ if (arr[j] < pivot){ i++; swap(arr[i], arr[j]); } } swap(arr[i + 1], arr[high]); return (i + 1); } void quick_sort(int arr[], int low, int high){ if (low < high) { //pi = pivotindex int pi = partition(arr, low, high); quick_sort(arr, low, pi - 1); q..
#include #include #include using namespace std; class Graph{ int V; list*adj; public: Graph(int V); ~Graph(); void add_line(int from, int to); void bfs(int start); }; Graph::Graph(int V){ this->V = V; adj = new list[V]; } Graph::~Graph(){ delete[] adj; } void Graph::add_line(int from, int to){ adj[from].push_back(to); } void Graph::bfs(int start){ bool *visited = new bool[V]{false}; visited[star..