<?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>aykrieger</title>
    <link>https://aykrieger.com/</link>
    <description>Recent content on aykrieger</description>
    <generator>Hugo -- 0.160.1</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 01 May 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://aykrieger.com/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Algorithmic Crush</title>
      <link>https://aykrieger.com/posts/programming/algorithmic-crush/</link>
      <pubDate>Sun, 01 May 2022 00:00:00 +0000</pubDate>
      <guid>https://aykrieger.com/posts/programming/algorithmic-crush/</guid>
      <description>&lt;p&gt;I was working on a problem on HackerRank called &lt;a href=&#34;https://www.hackerrank.com/challenges/crush/problem&#34;&gt;Algorithmic Crush&lt;/a&gt; (now titled &amp;ldquo;Array Manipulation&amp;rdquo;) and I thought the efficient solution was interesting and worth sharing.&lt;/p&gt;
&lt;h2 id=&#34;problem&#34;&gt;Problem&lt;/h2&gt;
&lt;p&gt;You are given the size of a 1-indexed array and a list of operations to perform. Perform each operation on the array and return the maximum value in the array after all operations have been completed.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s go through an example.&lt;/p&gt;
&lt;p&gt;Our example array has 8 elements (represented by &lt;em&gt;n&lt;/em&gt;) and we are going to perform 3 operations on the array (represented by &lt;em&gt;m&lt;/em&gt;).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
