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 |
Tags
- programmers
- Lv. 2
- Baekjoon
- Java
- SQL 고득점 KIT
- dfs
- bfs
- SQL
- Python
- 파이썬
- LEVEL 2
- level 3
- javascript
- join
- softeer
- group by
- Lv. 1
- DP
- 백준
- Dynamic Programming
- select
- 프로그래머스
- 티스토리챌린지
- Lv. 0
- Lv. 3
- 깊이 우선 탐색
- 오블완
- 소프티어
- 자바스크립트
- 너비 우선 탐색
Archives
- Today
- Total
목록석유 시추 (1)
몸과 마음이 건전한 SW 개발자
프로그래머스 [Lv. 2] 석유 시추 {언어 : JavaScript}
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/250136 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(land) { const [n, m] = [land.length, land[0].length]; const dr = [-1, 1, 0, 0]; const dc = [0, 0, -1, 1]; const isValid = (nr, nc) => { return 0 { // 몇 번 열에서 석유를 뽑았는지 확인해줄 배열 let visited = Arr..
알고리즘
2024. 3. 28. 13:47