2022.03.28프로젝트코딩테스트 <LEVEL 1> - 후기이전 c언어 문제은행 이후로 모각코에 참여하게 되었습니다. 또 한번 3주간 매일매일 모각코에 참여하면서 코딩실력도 기르고 꾸준한 공부를 할 수 있었네요. 다만 이번 알고리즘은 공부가 더 필요할 것 같다는 느낌을 받았어요. 많이 어렵네요 ㅎㅎ;; 운영자님과 동기00
2022.03.28프로젝트코딩테스트 <LEVEL 1> - 15일차golmu님의 코드를 참고하였습니다. #include <iostream> #include <queue> using namespace std; #define MAX_SIZE 7 int maze[MAX_SIZE][MAX_SIZE] = { 00
2022.03.25프로젝트코딩테스트 <LEVEL 1> - 14일차dewchae님의 코드를 참고했습니다. #include <stdio.h> #define MAX_SIZE 5 int graph[MAX_SIZE][MAX_SIZE]; void insert(int start, int dest, int weight, int directio00
2022.03.24프로젝트코딩테스트 <LEVEL 1> - 13일차아직 구현하기는 어렵네요. 이전 배운 코드를 활용만 해보았습니다. #include<stdio.h> #include<stdlib.h> #define MAX_HEAP_SIZE 101 typedef struct _Heap { int arr[MAX_HEAP_SIZE];00
2022.03.23프로젝트코딩테스트 <LEVEL 1> - 12일차참고 - https://8iggy.tistory.com/112 def pre_in_to_post(pre_list, in_list): if pre_list: root = pre_list[0] mid = in_list.index(roo00
2022.03.22프로젝트코딩테스트 <LEVEL 1> - 11일차수정중 #include <stdio.h> #include <stdlib.h> typedef int Elem; typedef struct Node { Elem data; struct Node* left; struct Node* right; } Node; 00
2022.03.21프로젝트코딩테스트 <LEVEL 1> - 10일차출처 - https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=holy_joon&logNo=221583745847 #include <stdio.h> #include <stdlib.h> struct00
2022.03.18프로젝트코딩테스트 <LEVEL 1> - 9일차dewchae님의 코드를 참고했습니다. #include <stdio.h> #include <stdlib.h> #define MAX_QUEUE_SIZE 10 int queue[MAX_QUEUE_SIZE]; int head = 0, tail = 0; int request00
2022.03.17프로젝트코딩테스트 <LEVEL 1> - 8일차#include <stdio.h> int main() { int arr[10][3], i, a, sum = 0, max = 0, k, m; for (i = 0; i < 10; i++) { scanf("%d %d %d",&a,&arr[i][0],&ar00
2022.03.16프로젝트코딩테스트 <LEVEL 1> - 7일차#include <stdio.h> #include <math.h> #include <stdbool.h> #define MAX 1000 bool not_prime[MAX]; int sum_prime[MAX/10]; void decimal(int a){ i00
2022.03.15프로젝트코딩테스트 <LEVEL 1> - 6일차#include <stdio.h> int main(){ char x[1000]; int l, r; while(1) { l = 0; r = 0; scanf("%s", x); for(int i = 010
2022.03.14프로젝트코딩테스트 <LEVEL 1> - 5일차#include <stdio.h> int main(){ int arr[5] = {9, 6, 7, 3, 5}; int temp, min = 100, sum; for(int i = 0; i < 5; i++) { min = 100; 00
2022.03.11프로젝트코딩테스트<LEVEL1> - 4일차임의의 배열을 만들고 재귀를 이용해 이분탐색을 만들어 봤습니다. #include <stdio.h> int search(int arr[], int first, int last, int target) { int mid; if(first > last) 00
2022.03.09프로젝트코딩테스트<LEVEL 1> - 3일차2진 탐색과 최소 최대를 이용하여 풀었습니다. #include <stdio.h> int main(){ int x, max = 0, arr[10000]; for (int i = 0; i < 4; i++) { scanf("%d", &arr[i])00
2022.03.08프로젝트코딩테스트<LEVEL 1> - 2일차for문(반복문) + for문(반복문) 두개이므로 o(n) + o(n) = o(n) - (상수항 무시) 가 된다. for문(반복문)(for문(반복문)) + for문(반복문) 반복문 안에 반복문 + 반복문 이므로 o(n*n) + o(n00
2022.03.07프로젝트코딩테스트 <LEVEL 1> - 1일차사용할 언어 = c/c++ 개발환경 = repl.it 목표로 삼을 알고리즘 문제 = https://www.acmicpc.net/problem/2098 이전에 c언어 문제은행을 진행하였다. 그러나 마지막 3일은 풀지 못한 문제가 많았다. 그 중 가장 어려운 문제를00