일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 조지아텍
- MATLAB
- Deep learning
- C++
- LAA
- 매트랩
- 기본
- 온라인석사
- cpp
- 프로그래머스
- 딥러닝
- 코딩테스트
- 머신러닝
- 주정부이민
- 방통대
- LV1
- leetcode
- 방송통신대학교
- Plotting
- omscs
- 개발자
- mpnp
- 위니펙
- 캐나다 영주권
- 컴퓨터과학과
- 선형대수
- machine learning
- 알고리즘
- zeros
- EOI
- Today
- Total
목록개발 로그/자료구조 (3)
Byte by Byte
#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..