<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Response on Kelly Dev</title><link>https://kelly-chui.github.io/tags/response/</link><description>Recent content in Response on Kelly Dev</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 22 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://kelly-chui.github.io/tags/response/index.xml" rel="self" type="application/rss+xml"/><item><title>TIL. May 21, 2026</title><link>https://kelly-chui.github.io/til/2026/til-2026-05-21/</link><pubDate>Fri, 22 May 2026 00:00:00 +0000</pubDate><guid>https://kelly-chui.github.io/til/2026/til-2026-05-21/</guid><description>&lt;h1 id="요약"&gt;요약&lt;/h1&gt;
&lt;p&gt;LeetCode 문제를 풀면서 자료의 표현 방식이 성능에 큰 영향을 준다는 점을 다시 확인했다. 또한 Express의 &lt;code&gt;req&lt;/code&gt;, &lt;code&gt;res&lt;/code&gt;, &lt;code&gt;next()&lt;/code&gt;가 어떻게 협력하여 요청을 처리하는지 파이프라인 관점에서 정리했다.&lt;/p&gt;
&lt;h2 id="배운-것"&gt;배운 것&lt;/h2&gt;
&lt;h3 id="leetcode-3043-최적화"&gt;LeetCode 3043 최적화&lt;/h3&gt;
&lt;p&gt;LeetCode 3043번 문제를 풀었다. 두 정수형 배열에 있는 원소들 중 임의의 두 수를 선택했을 때, 공통의 일치하는 prefix의 최대 길이를 구하는 문제였다.&lt;/p&gt;
&lt;p&gt;우선, 각 배열의 길이가 최대 50000이기 때문에, 가능한 모든 쌍을 만들어서 크기를 구하는 방식으로 하면 시간복잡도가 O(n²)이 되어서 문제를 제 시간 안에 해결하기 힘들다. (n은 둘 중 긴 배열의 원소의 개수)&lt;/p&gt;</description></item></channel></rss>