일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- dfs
- 프로그래머스
- Python
- 너비 우선 탐색
- SQL 고득점 KIT
- DP
- Dynamic Programming
- 동적계획법
- Lv. 2
- Lv. 0
- 파이썬
- softeer
- programmers
- bfs
- Lv. 1
- 자바스크립트
- Baekjoon
- 오블완
- Java
- Lv. 3
- 깊이 우선 탐색
- 소프티어
- javascript
- level 3
- 티스토리챌린지
- SQL
- join
- LEVEL 2
- group by
- 백준
- Today
- Total
목록programmers (315)
몸과 마음이 건전한 SW 개발자
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/84512 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 cnt = 0 answer = 0 def solution(word): def dictSearch(length, string): global cnt, answer if length: if word == string: answer = cnt if length == 5: return for alpha in ["A", "E", "I", "O", "U"]: cnt += 1 dictSe..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181943 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 #include #include #include #include // strlen과 strcpy를 사용하기 위해 추가 // 파라미터로 주어지는 문자열은 const로 주어집니다. 변경하려면 문자열을 복사해서 사용하세요. char* solution(const char* my_string, const char* overwrite_string, int s) { int len_m..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181944?language=c 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 #include int main(void) { int n; scanf("%d", &n); // n & 1 연산을 통해 n의 홀짝 판별 if (n & 1) { printf("%d is odd\n", n); // n이 홀수인 경우 } else { printf("%d is even\n", n); // n이 짝수인 경우 } return 0; } 풀이 방법 n &..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181945?language=c 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 #include #define LEN_INPUT 11 int main(void) { char s1[LEN_INPUT]; scanf("%s", s1); for (int idx = 0; s1[idx] != '\0'; idx++) { // "\0" 대신 '\0' 사용 printf("%c\n", s1[idx]); } return 0; } 풀이 방법 "\0"(큰 ..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181946?language=c 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 #include #define LEN_INPUT1 11 #define LEN_INPUT2 11 int main(void) { char s1[LEN_INPUT1]; char s2[LEN_INPUT2]; scanf("%s %s", s1, s2); printf(s1); printf(s2); return 0; }
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181947 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 #include int main(void) { int a; int b; scanf("%d %d", &a, &b); printf("%d + %d = %d", a, b, a+b); return 0; }