Skip to content

Instantly share code, notes, and snippets.

View tiger1710's full-sized avatar
🎯
Focusing on Problem Solving!!!

DeokHwan Kim tiger1710

🎯
Focusing on Problem Solving!!!
View GitHub Profile
@tiger1710
tiger1710 / brackets.c
Created March 16, 2020 04:54
check brackets
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) == '(') {
@tiger1710
tiger1710 / Dijkstra.cpp
Last active June 8, 2020 02:11
Dijkstra
typedef pair<int, int> point;
const int INF = 987654321;
//정점의 개수
int V;
//그래프의 인접리스트 (연결된 정점 번호, 간선 가중치)
vector<point> adj;
vector<int> dijkstra(const int& src) {
vector<int> dist(V, INF);
dist[src] = 0;
priority_queue<point> pq;
from urllib.parse import quote_plus, urlencode
import requests
from urllib.request import urlopen, Request
session = requests.Session
url = 'http://apis.data.go.kr/1160100/service/GetStocDiviInfoService/getDiviInfo'
queryParams = '?' + urlencode({
quote_plus('ServiceKey') : 'gJzlDCS7IS9dZXyGkrtszUr0x5BophBoSedp7A6TEATYpeG9rzLVB8sOyNKf8kRUWl7cc50has2ogGw9KWGICw%3D%3D',
quote_plus('pageNo') : '1',