본문 바로가기

전체 글114

[FitTrip] 캡스톤 프로젝트 진행 2024.03 ~ 2024.06 회고 대략 3 ~ 4개월동안 진행했던 캡스톤 프로젝트의 마무리 단계에 들어왔다. 시작하기에 앞서..3 ~ 4개월간 캡스톤 프로젝트, 정보처리기사 필기/실기, 학교 수업 등등 바쁜 시간을 보낸 것 같다.(물론, 이것이 블로그 포스팅 작업이 뜸해진 이유이지만, 어떻게서든 할라면 할 수 있었기에 변명이 될 수도 있다.)  FitTrip 프로젝트란?FitTrip은 많은 사용자들이 사용하는 디스코드에서 운동이라는 컨셉을 적용한 온라인 커뮤니티라고 생각하면 된다.백엔드 서비스는 총 6가지로 구성되어 있다.커뮤니티 서비스알림 서비스채팅 서비스상태관리 서비스유저 서비스시그널링 서비스이 밖의 MSA를 위한 연동 서비스는 2가지가 존재한다.서비스 디스커버리(Spring Cloud Eureka)API GATEWAY(Spring .. 2024. 6. 23.
[프로그래머스] 숫자 변환하기 - Java import java.util.*;class Solution { public int solution(int x, int y, int n) { int answer = 0; Queue q = new LinkedList(); q.add(new int[]{x, 0}); boolean[] visited = new boolean[y - x + 1]; while(!q.isEmpty()){ int[] curr = q.poll(); if(curr[0] == y){ return curr[1]; } .. 2024. 6. 22.
[프로그래머스] 도넛과 막대 그래프 - Java import java.util.*;class Solution { List> graph; int maxVertex; boolean[] visited; boolean[] check; int[] inDegree; int startVertex; public void init(int[][] edges){ maxVertex = 0; check = new boolean[1000000]; for(int[] edge : edges){ check[edge[0]] = true; check[edge[1]] = true; maxVertex = Math... 2024. 6. 8.
[프로그래머스] 혼자서 하는 틱택토 - Java class Solution { public int solution(String[] board) { String[][] board_Arr = new String[3][3]; for(int i = 0; i = 2){ return 0; } boolean check = false; boolean oWin = false; boolean xWin = false; for(int i = 0; i x){ return 0; } } } if(board.. 2024. 6. 7.
2024-05-26(배포, docker-compose, Spring Cloud, Github Actions) 이번 캡스톤 프로젝트에서 배포를 맞게 되었고Spring Cloud를 처음 사용해보며 여러 작업을 하고 있다.docker-compose를 이용하여 컨테이너가 같은 도커 네트워크 환경을 공유할 수 있도록 하였고 MSA의 장점에 걸맞게 스케일 아웃했을 때 서버가 중단되지 않고 배포가 되는무중단 배포를 위해 Makefile를 제작하였다.(필자의 생각에 근거하여 Makefile을 작성하였기 때문에 이게 옳은 방법이라곤 할 수 없다.)  Makefile 초안(지금은 조금 다름).PHONY: up downup: docker-compose pull docker-compose up -d zookeeper kafka discovery-service gateway-service redis-user .. 2024. 5. 26.
[goorm] Dead Or Arrive - Java import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.Arrays;import java.util.StringTokenizer;public class DeadOrArrive { static class Car{ int v; int w; int number; public Car(int v, int w, int number){ this.v = v; this.w = w; this.number = number; } } public static .. 2024. 5. 21.
[백준] 구간 나누기2 - Python 13397 # 8 3# 1 5 4 6 2 1 3 7# [1, 1, 2, 3, 4, 5, 6, 7]import sysinput = sys.stdin.readlinedef check(target): global arr, M now_min = now_max = arr[0] count = 1 for i in range(len(arr)): now_min = min(now_min, arr[i]) now_max = max(now_max, arr[i]) if now_max - now_min > target: count += 1 now_max = now_min = arr[i] # print("count", count, targe.. 2024. 5. 19.
[백준] 같이 눈사람 만들래? - Python 20366 # 5# 3 5 2 5 9## 2 3 5 5 9#import sysinput = sys.stdin.readlineT = int(input().rstrip())nums = list(map(int, input().split()))nums.sort()result = sys.maxsizefor i in range(len(nums)): for j in range(i + 3, len(nums)): l = i + 1 r = j - 1 while l abs(temp): result = abs(temp) if temp 2024. 5. 15.