본문 바로가기

전체 글198

[C#] 11866번: 요세푸스 문제 0 목차백준 단계별로 풀어보기25.11.2216단계: 스택, 큐, 덱 111866번: 요세푸스 문제 0문제 링크 : https://www.acmicpc.net/problem/11866 문제를 풀기 위해 알아야 할 개념>> Queue: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 제거하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://s.. 2025. 11. 22.
[C#] 2164번: 카드2 목차백준 단계별로 풀어보기25.11.2116단계: 스택, 큐, 덱 12164번: 카드2문제 링크 : https://www.acmicpc.net/problem/2164 문제를 풀기 위해 알아야 할 개념>> Queue: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 제거하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://scrap.kak.. 2025. 11. 21.
[C#] 18258번: 큐 2 목차백준 단계별로 풀어보기25.11.1916단계: 스택, 큐, 덱 118258번: 큐 2문제 링크 : https://www.acmicpc.net/problem/18258 문제를 풀기 위해 알아야 할 개념>> Queue: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 제거하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://scrap.k.. 2025. 11. 19.
[C#] 12789번: 도키도키 간식드리미 목차백준 단계별로 풀어보기25.11.1816단계: 스택, 큐, 덱 112789번: 도키도키 간식드리미문제 링크 : https://www.acmicpc.net/problem/12789 문제를 풀기 위해 알아야 할 개념>> Queue: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 삭제하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://.. 2025. 11. 18.
[C#] 4949번: 균형잡힌 세상 목차백준 단계별로 풀어보기25.11.1716단계: 스택, 큐, 덱 14949번: 균형잡힌 세상문제 링크 : https://www.acmicpc.net/problem/4949 문제를 풀기 위해 알아야 할 개념>> Stack: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 삭제하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://scrap.. 2025. 11. 17.
[C#] 9012번: 괄호 목차백준 단계별로 풀어보기25.11.1616단계: 스택, 큐, 덱 19012번: 괄호문제 링크 : https://www.acmicpc.net/problem/9012 문제를 풀기 위해 알아야 할 개념>> Stack: 아래 글에 정리해두었다. > 주요 메서드Push(x) : 주어진 요소 x를 Stack의 맨 위에 추가한다.Pop() : Stack이 비어있지 않으면 맨 위에 있는 요소를 삭제하고 반환한다.Peek() " data-og-host="mobics.tistory.com" data-og-source-url="https://mobics.tistory.com/219" data-og-url="https://mobics.tistory.com/219" data-og-image="https://scrap.kaka.. 2025. 11. 16.