{{ message }}

Instantly share code, notes, and snippets.

🎯
Focusing on Problem Solving!!!

# tiger1710

🎯
Focusing on Problem Solving!!!
Last active Jun 8, 2020
Dijkstra
View Dijkstra.cpp
 typedef pair point; const int INF = 987654321; //정점의 개수 int V; //그래프의 인접리스트 (연결된 정점 번호, 간선 가중치) vector adj; vector dijkstra(const int& src) { vector dist(V, INF); dist[src] = 0; priority_queue pq;
Created Mar 16, 2020
check brackets
View brackets.c
 bool brackets(char word[], sList *list) { for (int i = 0; i < strlen(word); i++) { if (word[i] == '(' || word[i] == '{' || word[i] =='[') { push(list, word[i]); } else { if (!isEmpty(list)) { switch (word[i]) { case ')': if (peek(list) == '(') {
Created Mar 16, 2020
c-style stack
View myStack.c
 #include #include #include #include typedef struct stack { char data; struct stack *next; }Stack;
Created Mar 10, 2020
배운거
View what i learned.md

# 내가 알고리즘 문제풀면서 배운것들..

## 1.member function에서 private 변수의 &리턴하기

```#include <iostream>
#include <vector>
using namespace std;

class Foo {```
Last active Mar 3, 2020
Hide And Seek!
View 12851.cpp
 #include #include #include #include #include #include #define endl '\n' #define point pair using namespace std;
Last active Jan 30, 2020
View 9466.cpp
 #include #include #include #include #include #define endl '\n' #define point pair using namespace std; enum {notChecked = -1, notGrouped, Grouped};
Created Feb 19, 2019
View Tail Call Recursion.cpp
 #include using namespace std; int f(int n, int prev = 0, int next = 1) { if (not n) return prev; return f(n - 1, next, prev + next); } int main(void) { cout << f(4) << '\n';
Last active Feb 19, 2019
View Tail Call.cpp
 #include using namespace std; int f(int a) { a = 0; return a; } int foo1(int b) { return f(b) + 1;
Last active Feb 11, 2019
기존의 피보나치수열의 재귀함수
View Source.cpp
 #include using namespace std; int f(int n) { if (n < 0) return 0; if (n < 2) return n; return f(n - 1) + f(n - 2); } int main(void) {
Last active Feb 11, 2020
View 구조체.md

# C에서의 구조체

## 들어가면서

코딩 꼭 같이 해보면서 해보세요.. ㅠㅠ 그럼 더 이해 잘 될것 같네요..

## 1. 배경

만약 학생을 데이터로 표현하고 싶다고하면, 이름, 학번, 학년을 데이터로 저장해야 한다.

You can’t perform that action at this time.