<?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[Sanjula’s Dev Notes - Medium]]></title>
        <description><![CDATA[My notes regarding programming, software architecture and engineering - Medium]]></description>
        <link>https://medium.com/sanjulas-dev-notes?source=rss----dcc2b4ca4a1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Sanjula’s Dev Notes - Medium</title>
            <link>https://medium.com/sanjulas-dev-notes?source=rss----dcc2b4ca4a1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 11:36:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/sanjulas-dev-notes" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with AWS EC2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/sanjulas-dev-notes/getting-started-with-aws-ec2-860559ef456f?source=rss----dcc2b4ca4a1---4"><img src="https://cdn-images-1.medium.com/max/1200/1*tFl-8wQUENETYLjX5mYWuA.png" width="1200"></a></p><p class="medium-feed-snippet">Amazon Elastic Compute Cloud (EC2) enables highly scalable computing in AWS cloud and is a cost-effective way to develop and deploy&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/sanjulas-dev-notes/getting-started-with-aws-ec2-860559ef456f?source=rss----dcc2b4ca4a1---4">Continue reading on Sanjula’s Dev Notes »</a></p></div>]]></description>
            <link>https://medium.com/sanjulas-dev-notes/getting-started-with-aws-ec2-860559ef456f?source=rss----dcc2b4ca4a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/860559ef456f</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Sanjula Madurapperuma]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 14:17:16 GMT</pubDate>
            <atom:updated>2020-04-06T14:17:16.347Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Everything you need to know about Insertion Sort algorithm]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/sanjulas-dev-notes/everything-you-need-to-know-about-insertion-sort-algorithm-6dfb2c7a86e?source=rss----dcc2b4ca4a1---4"><img src="https://cdn-images-1.medium.com/max/1000/0*MwBLgTLt9BhWot7w" width="1000"></a></p><p class="medium-feed-snippet">What is Insertion sort?</p><p class="medium-feed-link"><a href="https://medium.com/sanjulas-dev-notes/everything-you-need-to-know-about-insertion-sort-algorithm-6dfb2c7a86e?source=rss----dcc2b4ca4a1---4">Continue reading on Sanjula’s Dev Notes »</a></p></div>]]></description>
            <link>https://medium.com/sanjulas-dev-notes/everything-you-need-to-know-about-insertion-sort-algorithm-6dfb2c7a86e?source=rss----dcc2b4ca4a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/6dfb2c7a86e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[blogger]]></category>
            <dc:creator><![CDATA[Sanjula Madurapperuma]]></dc:creator>
            <pubDate>Sun, 07 Jul 2019 13:36:54 GMT</pubDate>
            <atom:updated>2019-07-07T15:29:47.632Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to install sbt on Linux]]></title>
            <link>https://medium.com/sanjulas-dev-notes/how-to-install-sbt-on-linux-71664df2d480?source=rss----dcc2b4ca4a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/71664df2d480</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Sanjula Madurapperuma]]></dc:creator>
            <pubDate>Thu, 30 May 2019 14:30:35 GMT</pubDate>
            <atom:updated>2019-05-30T16:07:16.033Z</atom:updated>
            <content:encoded><![CDATA[<h4>A short and sweet guide</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yN0WFkgL2gRsMSrf.png" /><figcaption>Figure-1: sbt logo</figcaption></figure><h3>Introduction</h3><p>Hi! I am <a href="https://www.linkedin.com/in/sanjula-madurapperuma/">Sanjula</a>, and in this guide I hope to teach you how to install sbt on Linux.</p><p>Let’s get started!</p><h3>What is sbt?</h3><p>sbt is an open-source, cross-platform build tool for Scala and Java projects.</p><p>Some of its main features are:</p><ul><li>Support for continuous compilation, testing and deployment.</li><li>Native support for compiling Scala code.</li><li>Dependency management using Ivy.</li><li>Ability to build descriptions written in Scala using a DSL (Domain-Specific Language).</li></ul><h3>Steps to install sbt</h3><ul><li>First you have to make sure that a JDK is installed. sbt recommends the Oracle JDK 8 or OpenJDK 8.</li><li>Open up a terminal and type in the following command, which will point to the debian distribution of sbt and add sbt to the sources list.</li></ul><pre>echo &quot;deb https://dl.bintray.com/sbt/debian /&quot; | sudo tee -a /etc/apt/sources.list.d/sbt.list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*KgNADEh4KyRZf98H4d0T4g.png" /><figcaption>Figure-2: Adding sbt URL to sources list</figcaption></figure><ul><li>Next, enter the command below, which adds the key of scala to the key list used by apt to authenticate packages.</li></ul><pre>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*JNJINkN6aWH64wi7aIyBsw.png" /><figcaption>Figure-3: Adding sbt to key list used by apt</figcaption></figure><ul><li>Now download the package lists from the repositories to ensure that the list of information on the newest version of packages and their dependencies are updated locally.</li></ul><pre>sudo apt-get update</pre><ul><li>Finally run the following command to install sbt.</li></ul><pre>sudo apt-get install sbt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*R8eFHroAfiqfwjLTbwB4kQ.png" /><figcaption>Figure-4: I already have sbt installed :)</figcaption></figure><p><strong>Congratulations!!!</strong> You have now installed the sbt build tool on your Linux PC! Now you can easily work with Scala and Java projects.</p><p><strong>In the meantime, you can give as many claps as you like to this article if you liked it, or comment down below for any concerns. Also please checkout my profile at </strong><a href="https://www.linkedin.com/in/sanjula-madurapperuma/"><strong>LinkedIn</strong></a><strong> and follow me on </strong><a href="https://medium.com/@sanjulamadurapperuma"><strong>Medium</strong></a><strong> for more awesome articles!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71664df2d480" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sanjulas-dev-notes/how-to-install-sbt-on-linux-71664df2d480">How to install sbt on Linux</a> was originally published in <a href="https://medium.com/sanjulas-dev-notes">Sanjula’s Dev Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything you need to know about Merge Sort algorithm]]></title>
            <link>https://medium.com/sanjulas-dev-notes/everything-you-need-to-know-about-merge-sort-algorithm-96e26ec382c3?source=rss----dcc2b4ca4a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/96e26ec382c3</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sanjula Madurapperuma]]></dc:creator>
            <pubDate>Fri, 26 Apr 2019 12:11:19 GMT</pubDate>
            <atom:updated>2019-07-14T05:57:55.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBo38xfM7QjnND-Y_oPglw.png" /><figcaption>Figure-1: Divide and Conquer!</figcaption></figure><h3>What is merge sort?</h3><p>Merge Sort is a method of sorting that uses the divide and conquer strategy.</p><p>In simpler words, it divides the array that is given into two halves, recursively calls itself for the two halves and then merges the sorted halves.</p><h3>Why is merge sort important?</h3><p>Merge sort has a worst-case, average-case and best-case time complexity of <strong><em>O(n log n). </em></strong>This<strong><em> </em></strong>is quasilinear time, which hosts some of the fastest possible comparison sort algorithms including Quicksort and Heapsort.</p><h3>How does merge sort work?</h3><p>We can consider an unsorted array shown below:</p><pre>{ 65    24    31    12    6    2    1    19 }</pre><p>We will now divide the whole array into equal halves. Since the above array has 8 values, then it can be divided into two arrays of 4 values each. (If the size of the array is odd, then don’t worry — the last value will be left aside till the sorting process).</p><pre>{ 65  24  31  12 }      { 6  2  1  19 }</pre><p>We will divide these two arrays into halves again.</p><pre>{ 65  24 }   { 31  12 }    { 6  2 }   { 1  19 }</pre><p>These arrays will now be divided into halves again, such that they cannot be divided again (carries a single value).</p><pre>{ 65 } { 24 } { 31 } { 12 } { 6 } { 2 } { 1 } { 19 }</pre><p>Now the values will be combined together in an array the same way it was broken down. To do this, we have to compare the element for each list and then combine them into another list while sorting them. Taking the first two values into consideration, we can see that they are not in the right order, so we will swap their positions before assigning them into one array. This process will continue for the rest of the values accordingly.</p><pre>{ 24  65 }  { 12  31 }  { 2  6 }  { 1  19 }</pre><p>In the next iteration we will compare the values once again and merge them into two arrays.</p><pre>{ 12  24  31  65 }    { 1  2  6  19 }</pre><p>Then comes the final iteration, which will compare values and merge the two arrays into one.</p><pre>{ 1    2    6   12   19   24   31   65 }</pre><h3>Java implementation of Merge sort algorithm</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/134ed72ec9ebffe0cb8315d2d3c1051e/href">https://medium.com/media/134ed72ec9ebffe0cb8315d2d3c1051e/href</a></iframe><p>Congratulations! You have now learnt the essentials of the Merge sort algorithm!</p><p>In the meantime, give as many claps as you like to this article if you liked it, comment down below for any concern and checkout my profile at <a href="https://www.linkedin.com/in/sanjula-madurapperuma/">LinkedIn</a> and follow me on <a href="https://medium.com/@sanjulamadurapperuma">Medium</a> for more awesome articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96e26ec382c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sanjulas-dev-notes/everything-you-need-to-know-about-merge-sort-algorithm-96e26ec382c3">Everything you need to know about Merge Sort algorithm</a> was originally published in <a href="https://medium.com/sanjulas-dev-notes">Sanjula’s Dev Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>