https://www.acmicpc.net/problem/15681힌트를 보지 않고 dfs와 bfs를 사용하여 푼 문제bfs로 그래프를 탐색해 각 노드의 층수를 정해주고dfs로 각 그래프의 자식들의 정점수를 탐색하여 풀었다.처음에는 dp를 쓰지 않고 풀었다가
https://www.acmicpc.net/problem/2252 위상 정렬과 무슨 관계가 있는지는 모르겠지만 dequeue로 풀 수 있을 것 같아서 풀어봤다.
https://www.acmicpc.net/problem/1543처음에는 간단하게 생각해 문자의 첫번째부터 탐색해 두 번째 문자열과 맞지 않으면 다시 탐색하는 방법을 사용했는데 문제가 틀릴 경우 앞의 문자열에서 다시 탐색을 해야하는 문제가 있어 실패틀린 코드그
The set 1, 2, 3, ..., n contains a total of n! unique permutations.By listing and labeling all of the permutations in order, we get the following sequ
Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicat