make it simple
article thumbnail
[JAVA] 프로그래머스: 영어가 싫어요

https://school.programmers.co.kr/learn/courses/30/lessons/120894 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public static long solution(String numbers){ String[] numberArr = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; for(int i=0;i

article thumbnail
[JAVA] 프로그래머스: 인덱스 바꾸기

https://school.programmers.co.kr/learn/courses/30/lessons/120895 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 public String solution(String my_string, int num1, int num2) { String answer = ""; String[] strings = my_string.split("",-1); String first = strings[num1]; strings[num1] = strings[num2]; strings[num2] = first; for(Str..

article thumbnail
[JAVA] 프로그래머스: 한 번만 등장한 문자

https://school.programmers.co.kr/learn/courses/30/lessons/120896 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String solution(String s) { StringBuilder sb = new StringBuilder(); HashMap charCount = new HashMap(); char[] chars = s.toCharArray(); for (char c : chars) { charCount.put(c, charCount.getOrDefault(c, 0) + 1); } for..

article thumbnail
[JAVA] 프로그래머스: 약수 구하기

https://school.programmers.co.kr/learn/courses/30/lessons/120897 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 public static ArrayList solution(int n) { ArrayList answers = new ArrayList(); for (int i = 1; i n % i == 0).toArray(); }

article thumbnail
[AWS] VPC & SUBNET 구축하기
DevOps&Network 2023. 3. 20. 02:03

VPC(Virtual Private Cloud) 란? VPC는 자체 데이터 센터에서 운영하는 기존 네트워크와 아주 유사한 가상 네트워크입니다. VPC를 생성한 후 서브넷을 추가할 수 있습니다. Virtual Private Cloud(VPC) - Amazon Virtual Private Cloud Virtual Private Cloud(VPC) Virtual Private Cloud(VPC)는 사용자의 AWS 계정 전용 가상 네트워크입니다. VPC는 AWS 클라우드에서 다른 가상 네트워크와 논리적으로 분리되어 있습니다. Amazon EC2 인스턴스 같은 AWS docs.aws.amazon.com SUBNET 이란? 서브넷은 VPC의 IP 주소 범위입니다. 서브넷은 단일 가용 영역에 상주해야 합니다. 서브넷..