Skip to content

Commit

Permalink
Automated deployment: Tue Jan 23 01:05:36 UTC 2024 87c1273
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Jan 23, 2024
1 parent 41ae1e0 commit 057215f
Show file tree
Hide file tree
Showing 50 changed files with 1,585 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Algorithm/[2022-08-29][백준_17928]_오큰수/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h3 id="통과-코드" style="position:relative;"><a href="#%ED%86%B5%EA%B3%BC-%
<p>수열의 오른쪽부터 체크하면서 스택의 맨 위 원소가 수열보다 크면 출력하고, 작으면 제거하고, 스택이 비었으면 오큰수가 없으므로 -1을 출력한다.</p>
<p>오른쪽에 있는 애들 중, 자기자신보다 크면서 가장 왼쪽에 있는 애를 찾는 문제이기 때문에
오른쪽 -> 왼쪽으로 가면서 자기자신보다 작은 애들은 스택에서 제거하고 다음 차례로 넘기니
매차례 스택을 복구 시켜줬던 첫번째 시도보다 시간도 줄어들고 코드도 깔끔해졌다.</p></section><hr/></article><div></div><nav class="blog-post-module--blog-post-nav--6c6d8"><ul><li></li><li><a class="blog-post-module--right-box--d9c2e" rel="next" href="/blog/Algorithm/[2022-09-14][백준_2110]_공유기_설치"><span>다음 글 <!-- --><span></span></span>[C++/백준 2110] 공유기 설치<!-- --></a></li></ul></nav></main><footer>© <!-- -->2024<!-- -->, Built with<!-- --> <!-- --><a href="https://www.gatsbyjs.com">Gatsby</a></footer></div></div><div id="gatsby-announcer" style="position:absolute;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"></div></div><script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/Algorithm/[2022-08-29][백준_17928]_오큰수";/*]]>*/</script><!-- slice-start id="_gatsby-scripts-1" -->
매차례 스택을 복구 시켜줬던 첫번째 시도보다 시간도 줄어들고 코드도 깔끔해졌다.</p></section><hr/></article><div></div><nav class="blog-post-module--blog-post-nav--6c6d8"><ul><li><a class="blog-post-module--left-box--22ce0" rel="prev" href="/blog/React/[2022-06-05]react-hook-form_써보기/[2022-06-05]react-hook-form_써보기"><span><span></span> 이전 글<!-- --></span>[React] React Hook Form 써보기<!-- --></a></li><li><a class="blog-post-module--right-box--d9c2e" rel="next" href="/blog/Algorithm/[2022-09-14][백준_2110]_공유기_설치"><span>다음 글 <!-- --><span></span></span>[C++/백준 2110] 공유기 설치<!-- --></a></li></ul></nav></main><footer>© <!-- -->2024<!-- -->, Built with<!-- --> <!-- --><a href="https://www.gatsbyjs.com">Gatsby</a></footer></div></div><div id="gatsby-announcer" style="position:absolute;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"></div></div><script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/Algorithm/[2022-08-29][백준_17928]_오큰수";/*]]>*/</script><!-- slice-start id="_gatsby-scripts-1" -->
<script
id="gatsby-chunk-mapping"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
같은 문자열 문제 중에 1141 접두사 실버2 문제가 있는데 이게 더 어려웠던 거 같다.</p>
<p>그냥 한 번 정렬해준 다음, 앞에서부터 두개씩 비교해가며
한쪽이 남은 한쪽의 접두사가 되는지 체크하는 check라는 bool 변수를 썼고,
check가 true일 때 일관성을 의미하는 변수 consistent를 false로 바꿔줬다.</p></section><hr/></article><div></div><nav class="blog-post-module--blog-post-nav--6c6d8"><ul><li><a class="blog-post-module--left-box--22ce0" rel="prev" href="/blog/Algorithm/[2022-09-14][백준_2110]_공유기_설치"><span><span></span> 이전 글<!-- --></span>[C++/백준 2110] 공유기 설치<!-- --></a></li><li><a class="blog-post-module--right-box--d9c2e" rel="next" href="/blog/회고/[2024-01-10]2023년_회고록/[2024-01-10]2023년_회고록"><span>다음 글 <!-- --><span></span></span>2023년 회고록<!-- --></a></li></ul></nav></main><footer>© <!-- -->2024<!-- -->, Built with<!-- --> <!-- --><a href="https://www.gatsbyjs.com">Gatsby</a></footer></div></div><div id="gatsby-announcer" style="position:absolute;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"></div></div><script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/Algorithm/[2022-09-14][백준_5052]_전화번호_목록";/*]]>*/</script><!-- slice-start id="_gatsby-scripts-1" -->
check가 true일 때 일관성을 의미하는 변수 consistent를 false로 바꿔줬다.</p></section><hr/></article><div></div><nav class="blog-post-module--blog-post-nav--6c6d8"><ul><li><a class="blog-post-module--left-box--22ce0" rel="prev" href="/blog/Algorithm/[2022-09-14][백준_2110]_공유기_설치"><span><span></span> 이전 글<!-- --></span>[C++/백준 2110] 공유기 설치<!-- --></a></li><li><a class="blog-post-module--right-box--d9c2e" rel="next" href="/blog/회고/[2023-12-26]UPF_2022SS_회고록/[2023-12-26]UPF_2022SS_회고록"><span>다음 글 <!-- --><span></span></span>“UPF 2022SS 회고록”<!-- --></a></li></ul></nav></main><footer>© <!-- -->2024<!-- -->, Built with<!-- --> <!-- --><a href="https://www.gatsbyjs.com">Gatsby</a></footer></div></div><div id="gatsby-announcer" style="position:absolute;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"></div></div><script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/Algorithm/[2022-09-14][백준_5052]_전화번호_목록";/*]]>*/</script><!-- slice-start id="_gatsby-scripts-1" -->
<script
id="gatsby-chunk-mapping"
>
Expand Down
2 changes: 1 addition & 1 deletion Algorithm/page/1/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion home/page/1/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 057215f

Please sign in to comment.