<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>leetcode on Suriya's site</title><link>https://subygan.com/tech/algos/problems/leetcode/</link><description>Recent content in leetcode on Suriya's site</description><generator>Hugo</generator><language>en</language><copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright><item><title>42. trapping rain water</title><link>https://subygan.com/tech/algos/problems/leetcode/42_trapping_rain/</link><pubDate>Sun, 26 Nov 2023 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/algos/problems/leetcode/42_trapping_rain/</guid><description>&lt;h2 id="problem-statement">problem statement&lt;/h2>
&lt;p>Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.&lt;/p></description></item><item><title>min in rotated array</title><link>https://subygan.com/tech/algos/problems/leetcode/154_min_in_rotated_arr/</link><pubDate>Sun, 26 Nov 2023 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/algos/problems/leetcode/154_min_in_rotated_arr/</guid><description>&lt;p>Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,4,4,5,6,7] might become:&lt;/p></description></item><item><title>longest valid parentheses</title><link>https://subygan.com/tech/algos/problems/leetcode/32_longest_parentheses/</link><pubDate>Fri, 24 Nov 2023 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/algos/problems/leetcode/32_longest_parentheses/</guid><description>&lt;p>problem link: &lt;a href="https://leetcode.com/problems/longest-valid-parentheses/">https://leetcode.com/problems/longest-valid-parentheses/&lt;/a>
&lt;/p>
&lt;p>Typically, in the parentheses problem a stack is the obvious choice. I spent too much time, chasing a phantom solution by thinking about this as a DP problem and filling various arrays.&lt;/p></description></item></channel></rss>