본문 바로가기

Java/Java 알고리즘 모음

[Java 알고리즘] 6. 큐/스택 모음

반응형

https://cote.inflearn.com/contest/10/problem/05-01

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/544

 

[Ch.05 - StackQueue] 01. 올바른 괄호

1. 올바른 괄호 설명 괄호가 입력되면 올바른 괄호이면 “YES", 올바르지 않으면 ”NO"를 출력합니다. (())() 이것은 괄호의 쌍이 올바르게 위치하는 거지만, (()()))은 올바른 괄호가 아니다. 입력 첫

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-02

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/545

 

[Ch.05 - StackQueue] 02. 괄호문자제거

2. 괄호문자제거 설명 입력된 문자열에서 소괄호 ( ) 사이에 존재하는 모든 문자를 제거하고 남은 문자만 출력하는 프로그램을 작성하세요. 입력 첫 줄에 문자열이 주어진다. 문자열의 길이는 100

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-03

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/546

 

[Ch.05 - StackQueue] 03. 크레인 인형뽑기(카카오)

3. 크레인 인형뽑기(카카오) 설명 게임개발자인 죠르디는 크레인 인형뽑기 기계를 모바일 게임으로 만들려고 합니다. 죠르디는 게임의 재미를 높이기 위해 화면 구성과 규칙을 다음과 같이 게임

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-04

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/548

 

[Ch.04 - StackQueue] 04. 후위식 연산(postfix)

4. 후위식 연산(postfix) 설명 후위연산식이 주어지면 연산한 결과를 출력하는 프로그램을 작성하세요. 만약 3*(5+2)-9 을 후위연산식으로 표현하면 352+*9- 로 표현되며 그 결과는 12입니다. 입력 첫 줄

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-05

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/549

 

[Ch.05 - StackQueue] 05. 쇠막대기

5. 쇠막대기 설명 여러 개의 쇠막대기를 레이저로 절단하려고 한다. 효율적인 작업을 위해서 쇠막대기를 아래에서 위로 겹쳐 놓고, 레이저를 위에서 수직으로 발사하여 쇠막대기들을 자른다. 쇠

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-06

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/550

 

[Ch.05 - StackQueue] 06. 공주 구하기

6. 공주 구하기 설명 정보 왕국의 이웃 나라 외동딸 공주가 숲속의 괴물에게 잡혀갔습니다. 정보 왕국에는 왕자가 N명이 있는데 서로 공주를 구하러 가겠다고 합니다. 정보왕국의 왕은 다음과 같

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-07

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/551

 

[Ch.05 - StackQueue] 07. 교육과정 설계

7. 교육과정 설계 설명 현수는 1년 과정의 수업계획을 짜야 합니다. 수업중에는 필수과목이 있습니다. 이 필수과목은 반드시 이수해야 하며, 그 순서도 정해져 있습니다. 만약 총 과목이 A, B, C, D,

and-some.tistory.com

 

 

https://cote.inflearn.com/contest/10/problem/05-08

 

OnlineJudge

 

cote.inflearn.com

https://and-some.tistory.com/552

 

[Ch.05 - StackQueue] 08. 응급실 #

8. 응급실 설명 메디컬 병원 응급실에는 의사가 한 명밖에 없습니다. 응급실은 환자가 도착한 순서대로 진료를 합니다. 하지만 위험도가 높은 환자는 빨리 응급조치를 의사가 해야 합니다. 이런

and-some.tistory.com

 


https://leetcode.com/problems/baseball-game/

 

Baseball Game - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/907

 

[LeetCode- Ch6. 큐와 스택] 1. 야구게임

https://leetcode.com/problems/baseball-game/ Baseball Game - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 정규표현식을 이용해

and-some.tistory.com

 

https://leetcode.com/problems/valid-parentheses/

 

Valid Parentheses - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/908

 

[LeetCode- Ch6. 큐와 스택] 2. 유효한 괄호

https://leetcode.com/problems/baseball-game/ Baseball Game - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 여는 괄호가 있을 때

and-some.tistory.com


 

https://leetcode.com/problems/minimum-path-sum/

 

Minimum Path Sum - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/929

 

[LeetCode- Part. 1] 6. 최소 경로 합 #

https://leetcode.com/problems/minimum-path-sum/ Minimum Path Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 경로를 따라 모든

and-some.tistory.com

 

https://leetcode.com/problems/asteroid-collision/

 

Asteroid Collision - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

https://and-some.tistory.com/938

 

[LeetCode- Part. 3] 2. 소행성 충돌

https://leetcode.com/problems/asteroid-collision/ Asteroid Collision - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 양수는 오른

and-some.tistory.com


 

https://school.programmers.co.kr/learn/courses/30/lessons/12909

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/673

 

 

[Stack / Queue] 01. 올바른 괄호

올바른 괄호 문제 설명 괄호가 바르게 짝지어졌다는 것은 '(' 문자로 열렸으면 반드시 짝지어서 ')' 문자로 닫혀야 한다는 뜻입니다. 예를 들어 "()()" 또는 "(())()" 는 올바른 괄호입니다. ")()(" 또는

and-some.tistory.com

 

 

https://school.programmers.co.kr/learn/courses/30/lessons/42586

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/674

 

[Stack / Queue] 02. 기능개발 # [부동소수점 변환 필요]

https://school.programmers.co.kr/learn/courses/30/lessons/42586 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는

and-some.tistory.com

 

 

https://school.programmers.co.kr/learn/courses/30/lessons/42584

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/675

 

[Stack / Queue] 03. 주식 가격 #

주식가격 문제 설명 초 단위로 기록된 주식가격이 담긴 배열 prices가 매개변수로 주어질 때, 가격이 떨어지지 않은 기간은 몇 초인지를 return 하도록 solution 함수를 완성하세요. 제한사항 prices의

and-some.tistory.com

 

 

https://school.programmers.co.kr/learn/courses/30/lessons/42587

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/676

 

[Stack / Queue] 04. 프린터

프린터 문제 설명 일반적인 프린터는 인쇄 요청이 들어온 순서대로 인쇄합니다. 그렇기 때문에 중요한 문서가 나중에 인쇄될 수 있습니다. 이런 문제를 보완하기 위해 중요도가 높은 문서를 먼

and-some.tistory.com

 

 

https://school.programmers.co.kr/learn/courses/30/lessons/42583

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/844

 

[Stack / Queue] 05. 다리를 지나는 트럭

https://school.programmers.co.kr/learn/courses/30/lessons/42583 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는

and-some.tistory.com

 

https://school.programmers.co.kr/learn/courses/30/lessons/42627

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/845

 

[Stack / Queue] 06. 디스크 컨트롤러

https://school.programmers.co.kr/learn/courses/30/lessons/42627?itm_content=course14743 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기

and-some.tistory.com

 

https://school.programmers.co.kr/learn/courses/30/lessons/42628

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

https://and-some.tistory.com/846

 

[Stack / Queue] 07. 이중우선순위큐

https://school.programmers.co.kr/learn/courses/30/lessons/42628 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는

and-some.tistory.com

 

반응형