일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 자바스크립트
- Lv. 3
- softeer
- group by
- 파이썬
- programmers
- javascript
- dfs
- level 3
- 너비 우선 탐색
- 티스토리챌린지
- join
- Python
- 소프티어
- DP
- Java
- 오블완
- 깊이 우선 탐색
- 백준
- SQL 고득점 KIT
- bfs
- Dynamic Programming
- LEVEL 2
- Lv. 0
- Lv. 2
- SQL
- 프로그래머스
- Lv. 1
- Baekjoon
- 동적계획법
- Today
- Total
목록분류 전체보기 (435)
몸과 마음이 건전한 SW 개발자
문제 링크 https://softeer.ai/practice/6252 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys N, B = map(int, input().split()) computers = sorted(list(map(int, input().split()))) left = 1 right = 2000000000 minV = 2000000000 while left currentMoney: right = mid - 1 break currentMoney -= cost else: left = mid + 1 print(right) 풀이 방법 찾으려고 하는 값(mid)이 최저성능의 컴퓨터의 값이다. 최저값은 당연히 1 최고값은 최저성능의 컴퓨터의 값 (1
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42576 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 function solution(participant, completion) { let answer = ""; const pDict = {}; for (const p of participant) { const isValid = pDict[p]; if (isValid) { pDict[p] += 1; } else { pDict[p] = 1; }; }; for (const cp..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42577 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(phone_book) { const pbDict = {}; for (const pn of phone_book) { pbDict[pn] = 1 } let answer = true; for (const pn of phone_book) { let isValid = true; const lenPn = pn.length; const currentList..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181899 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 const solution = (start, end) => Array(start-end+1).fill(start).map((v,i)=>v-i); 정답 코드 2 function solution(start, end_num) { const answer = []; for (let s = start; s >= end_num; s--) { answer.push(s); } retur..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181902 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(my_string) { const answer = Array(52).fill(0); // console.log("A".charCodeAt()) // 65 // const p1 = String.fromCharCode(65, 66, 67) // ABC // console.log("A".codePointAt()) // 65 // console.lo..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181908 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 function solution(my_string, is_suffix) { const lenMyString = my_string.length; const lenIsSuffix = is_suffix.length; if (lenIsSuffix > lenMyString) { return 0 } const diff = lenMyString - lenIsSuffix for (le..