<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dongjin Lim on Medium]]></title>
        <description><![CDATA[Stories by Dongjin Lim on Medium]]></description>
        <link>https://medium.com/@geniuslim27?source=rss-4c3b61dddd47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0EsF4TMRUfAbD93E</url>
            <title>Stories by Dongjin Lim on Medium</title>
            <link>https://medium.com/@geniuslim27?source=rss-4c3b61dddd47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 03:14:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@geniuslim27/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BOJ 1766 문제집]]></title>
            <link>https://medium.com/@geniuslim27/boj-1766-%EB%AC%B8%EC%A0%9C%EC%A7%91-154482faf298?source=rss-4c3b61dddd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/154482faf298</guid>
            <dc:creator><![CDATA[Dongjin Lim]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 10:29:52 GMT</pubDate>
            <atom:updated>2022-03-29T10:30:21.299Z</atom:updated>
            <content:encoded><![CDATA[<p>문제 유형: 위상 정렬</p><h3>문제 풀이</h3><p>1. 위상 정렬 문제 <br>2. 그래프 형태 : 선수문제(부모) -&gt; 후수문제(자식). 각 노드는 부모 노드를 0개 이상 갖는다.<br>3. 로직: <br> 1) unsolved 상태의 문제 중에서 선수문제가 없는 노드는 candidates 에 저장한다.</p><p>2) candidates 에서 가장 쉬운 문제(번호가 작은 노드) v 를 solve 한다.</p><p>3) v 는 자식들과 연결 관계를 끊는다. 이후, 부모가 한명도 없는 자식 노드는 candidates 에 추가한다.</p><p>모든 문제를 다 풀때까지 (1), (2) 과정을 반복한다.</p><h3>구현</h3><p>- Graph: 각 Node는 자식 리스트(children)와 부모의 숫자(unsolvedParentNum)를 갖는다.<br>- candidates 구현 : 쉬운 문제 순으로 저장되야 하므로, priority queue 로 구현</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c968260da90ad8eb37a9c4907226238/href">https://medium.com/media/5c968260da90ad8eb37a9c4907226238/href</a></iframe><p>문제 링크: <a href="https://www.acmicpc.net/problem/1766">https://www.acmicpc.net/problem/1766</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=154482faf298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[boj 2531 회전초밥]]></title>
            <link>https://medium.com/@geniuslim27/boj-2531-%ED%9A%8C%EC%A0%84%EC%B4%88%EB%B0%A5-c9256caf24ab?source=rss-4c3b61dddd47------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9256caf24ab</guid>
            <dc:creator><![CDATA[Dongjin Lim]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 10:23:41 GMT</pubDate>
            <atom:updated>2022-03-29T10:23:41.143Z</atom:updated>
            <content:encoded><![CDATA[<p>문제 유형: 슬라이딩 윈도우</p><h4>문제 풀이</h4><p>1. 슬라이딩 윈도우 문제<br>2. 풀이는 다음과 같다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*Wmyjl0KFjY58G1OCbD6a5Q.png" /></figure><h3><strong>구현</strong></h3><p>1. eaten : 현재 먹을 수 있는 초밥 정보 : (초밥id, 초밥개수)<br>2. 먹을 수 있는 가짓수 계산: eaten에 들어있는 key 의 현재 개수, coupon이 존재 하는지 여부로 계산 가능<br>3. 다음 칸으로 이동할때,<br> — left가 가리키는 초밥을 eatenMap 에서 하나 제거한다. 그리고 left 포인터 1 증가<br> — right 을 1 증가 시킨다. 그리고 right이 가리키는 초밥을 eatenMap에 하나 추가한다. <br>4. 회전 구현 : index%belt.size <br> — ex, IF 회전 초밥 벨트의 길이가 5, index 가 5라면, 0 번째 요소</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fdfb727d9aaad3b4fd699d2a7298b02/href">https://medium.com/media/3fdfb727d9aaad3b4fd699d2a7298b02/href</a></iframe><p>문제 링크: <a href="https://www.acmicpc.net/problem/2531">https://www.acmicpc.net/problem/2531</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9256caf24ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>