| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 너비 우선 탐색
- 티스토리챌린지
- Lv. 0
- 오블완
- bfs
- 자바스크립트
- level 3
- 소프티어
- Lv. 2
- 프로그래머스
- 백준
- Dynamic Programming
- Lv. 3
- Baekjoon
- LEVEL 2
- 파이썬
- SQL 고득점 KIT
- dfs
- group by
- DP
- join
- SQL
- programmers
- 동적계획법
- Lv. 1
- Java
- softeer
- javascript
- Python
- 깊이 우선 탐색
- Today
- Total
목록2024/02 (41)
몸과 마음이 건전한 SW 개발자
문제 링크 https://softeer.ai/practice/7703 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let numberOfPairs = 0; // 문자열 쌍의 개수 N let currentLine = 0; // 현재 처리 중인 입력 줄 const isValid = ["x", "X"]; const result = []; // 결과를 저장할 배열 rl.on("line", (line, index) => { if (index === 0) {..
문제 링크 https://softeer.ai/practice/7703 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys input = sys.stdin.readline result = [] N = int(input()) for _ in range(N): left, right = input().split() # 앞 뒤에서 동시에 탐색 # 앞 탐색 lenLeft = len(left) for idx in range(lenLeft): if left[idx] in ("x", "X"): result.append(right[idx].upper()) break if left[lenLeft-idx-1] in ("x", "X"): result.append(right[len..
문제 링크 https://softeer.ai/practice/6257 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys input = sys.stdin.readline N = int(input()) busStation = list(map(int, input().split())) result = 0 for idx in range(N-1): valueIdx = busStation[idx] isNotPossible = 0 for jdx in range(idx+1, N): valueJdx = busStation[jdx] if valueIdx < valueJdx: isNotPossible += 1 else: result += isNotPossible print(r..
문제 링크 https://softeer.ai/practice/6258 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline nodeDict = dict() N = int(input()) adjL = [[] for _ in range(N+1)] for _ in range(N-1): start, to, distance = map(int, input().split()) adjL[start].append(to) adjL[to].append(start) nodeDict[(start, to)] = distance nodeDict[(to, start)] = distance..
문제 링크 https://softeer.ai/practice/6290 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys input = sys.stdin.readline N = int(input()) stones = list(map(int, input().split())) def dpOfLIS(stones, N): dp = [0 for _ in range(N)] def binarySearch(stack, height): left, right = 0, len(stack) - 1 while left