Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- sql고득점kit
- 리시프
- dfs
- 스택
- 최대공약수
- 다익스트라
- 코딩테스트연습
- String
- 다이나믹프로그래밍
- 플로이드와샬
- C++
- 백준
- 동적계획법
- 코테준비
- 정렬
- 문자열
- unordered_map
- 참고 문헌 : MACHINE LEARNING 기계학습 _ 오일석
- 코테
- substr
- 프로그래머스
- MySQL
- MAP
- DP
- Dijkstra
- 알고리즘
- 시스템콜
- vector
- 우선순위큐
- set
Archives
- Today
- Total
목록동적계획법 (2)
YeJin's Footsteps

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/42898 코딩테스트 연습 - 등굣길 계속되는 폭우로 일부 지역이 물에 잠겼습니다. 물에 잠기지 않은 지역을 통해 학교를 가려고 합니다. 집에서 학교까지 가는 길은 m x n 크기의 격자모양으로 나타낼 수 있습니다. 아래 그림은 m = programmers.co.kr 문제 풀이 코드 #include #include #include using namespace std; long long int dp[101][101]={0,}; int solution(int m, int n, vector puddles) { int answer = 0; for(int i=1; i
Computer Science & Engineering/알고리즘
2021. 7. 7. 21:56

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/43105 코딩테스트 연습 - 정수 삼각형 [[7], [3, 8], [8, 1, 0], [2, 7, 4, 4], [4, 5, 2, 6, 5]] 30 programmers.co.kr 문제 풀이 문제 풀이 코드 #include #include #include #include using namespace std; int dp[500][500]={0,}; int solution(vector input) { int answer = 0; dp[0][0]=input[0][0]; for(int i=1; i
Computer Science & Engineering/알고리즘
2021. 7. 7. 16:23