Skip to content

Instantly share code, notes, and snippets.

View shinkeonkim's full-sized avatar
🏠
재택근무 / 집에서 공부, 프로젝트

kokoa shinkeonkim

🏠
재택근무 / 집에서 공부, 프로젝트
View GitHub Profile
@shinkeonkim
shinkeonkim / gist:3781fbeb03812a79e86c2782d0a174cf
Created January 14, 2023 09:21
기하 알고리즘 커리(from: NGD)
출처: NGD
0. 직선의 표현과 선분 교차
1. 컨벡스 헐
2. 로테이팅 캘리퍼스
3. 스위핑 (+ 샤모스 호이)
4. 볼록다각형 내 점 판별(logN)
5. 볼록다각형에 접선 긋기(logN)
6. HPI(NlogN)
7. 보로노이 & 델로네 삼각분할
🎉 전역을 축하합니다!
🗓 입대일: 2022-11-28
🗓 전역일: 2024-05-26
🚩 100% : ████████████████████████████████████████
@shinkeonkim
shinkeonkim / vector2.cpp
Created October 23, 2022 10:45
2차원 벡터 C++ 구현체
#include <bits/stdc++.h>
using namespace std;
const double PI = 2.0 * acos(0.0);
const double EPSILON = 1e-9;
const double INF = 1e200;
struct Vector2 {
double x;
@shinkeonkim
shinkeonkim / convex_hull.cpp
Created October 23, 2022 04:13
convex_hull
#include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
using namespace std;
@shinkeonkim
shinkeonkim / rotating_calipers.cpp
Last active October 23, 2022 03:57
rotating calipers
#include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
using namespace std;
class Node:
def __init__(self, value, next=None):
self.value = value
self.next = next
class LinkedList:
def __init__(self):
self.head = None
self.count = 0
@shinkeonkim
shinkeonkim / kokoa's GitHub Stats
Last active October 1, 2024 00:22
github-stats
⭐ Total Stars: 46
➕ Total Commits: 6,981
🔀 Total PRs: 884
🚩 Total Issues: 537
📦 Contributed to: 4
@shinkeonkim
shinkeonkim / cpp.json
Created May 18, 2022 15:26
ps-vscode-snippet
{
"ps-start": {
"prefix": "ps",
"body": [
"#include <bits/stdc++.h>",
"",
"#define for1(s,n) for(int i = s; i < n; i++)",
"#define for1j(s,n) for(int j = s; j < n; j++)",
"#define foreach(k) for(auto i : k)",
"#define foreachj(k) for(auto j : k)",
@shinkeonkim
shinkeonkim / 11438-HLD.cpp
Created September 11, 2021 09:57
Heavy Light Decomposition | Lowest Common Ancestor | BOJ 11438
#include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
#define MX_EDGE_CNT 110000