<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hariprasath</title>
    <description>The latest articles on DEV Community by Hariprasath (@hashiramasenjuhari).</description>
    <link>https://dev.to/hashiramasenjuhari</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1916003%2F3d804dd0-99e8-4598-8b45-c053dbde6575.jpeg</url>
      <title>DEV Community: Hariprasath</title>
      <link>https://dev.to/hashiramasenjuhari</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hashiramasenjuhari"/>
    <language>en</language>
    <item>
      <title>Recursion For Factorial Easyyyy</title>
      <dc:creator>Hariprasath</dc:creator>
      <pubDate>Wed, 26 Mar 2025 05:16:01 +0000</pubDate>
      <link>https://dev.to/hashiramasenjuhari/recursion-for-factorial-easyyyy-31j3</link>
      <guid>https://dev.to/hashiramasenjuhari/recursion-for-factorial-easyyyy-31j3</guid>
      <description>&lt;p&gt;b = 6&lt;br&gt;
6 * 5 * 4 * 3 * 2 * 1&lt;/p&gt;

&lt;p&gt;so we need to get the num less than before &lt;br&gt;
so&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function factorial(b){
    if(b === 0){
      return 1
    }
    else {
      b * factorial(b-1) 
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;6 * factorial(6-1){&lt;br&gt;
if(5 === 0){return 1}  // false&lt;br&gt;
else {5 * factorial(5-1) //true&lt;br&gt;
{if(4 === 0){return 1}  // false&lt;br&gt;
else {4*factorial(4-1)  //true&lt;br&gt;
{if(3 === 0){return 1}  // false&lt;br&gt;
else {3 * factorial(3-1)  //true&lt;br&gt;
{if(2 === 0){return 1}  //false&lt;br&gt;
else {2 * factorial(2-1)  //true&lt;br&gt;
{if(1 === 0){return 1}  // false&lt;br&gt;
else {1 * factorial(1 -1)  //true&lt;br&gt;
{if(0 === 0){return 1} //true&lt;br&gt;
else {0 * factorial(0-1)} // false&lt;br&gt;
}}}}}}}}}}}}&lt;/p&gt;

&lt;p&gt;here the function dosent call in every return but after calling upto n === 0 it saves each function value and multiple from right to left&lt;/p&gt;

&lt;p&gt;like factorial(0) = 1&lt;br&gt;
factorial(1) * factorial(0) = 1 * 1&lt;br&gt;
factorial(2) * factorial(1) = 2 * 1&lt;br&gt;
factorial(3) * factorial(2) = 3 * 2&lt;br&gt;
factorial(4) * factorial(3) = 4 * 6&lt;br&gt;
factorial(5) * factorial(4) = 5 * 24&lt;br&gt;
factorial(6) * factorial(5) = 6 * 120&lt;/p&gt;

&lt;p&gt;it call the function after stacking in top order &lt;br&gt;
the last called function is on top of stack &lt;/p&gt;

</description>
      <category>programming</category>
      <category>recursion</category>
    </item>
    <item>
      <title>Bubble Sort Got Bible</title>
      <dc:creator>Hariprasath</dc:creator>
      <pubDate>Mon, 24 Mar 2025 08:48:29 +0000</pubDate>
      <link>https://dev.to/hashiramasenjuhari/bubble-sort-got-bible-5fjb</link>
      <guid>https://dev.to/hashiramasenjuhari/bubble-sort-got-bible-5fjb</guid>
      <description>&lt;p&gt;list = [3,1,2,4,2]&lt;/p&gt;

&lt;p&gt;easiest sort algorithm ever seen&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i loop list {
    for j loop list - i {
       // i = 0
       // j = 0,1,2,3,4
       // this calculate the max value and push to last
       // eg [1,2,3,2,4]

       // second most 
       //i = 1
       // j = 0,1,2,3 // got max value so no use of last index
       // find second most
       // eg [1,2,2,3]
    }
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>Finally realized how reverse list work</title>
      <dc:creator>Hariprasath</dc:creator>
      <pubDate>Mon, 24 Mar 2025 06:34:40 +0000</pubDate>
      <link>https://dev.to/hashiramasenjuhari/finally-realized-how-reverse-list-work-o68</link>
      <guid>https://dev.to/hashiramasenjuhari/finally-realized-how-reverse-list-work-o68</guid>
      <description>&lt;p&gt;the core is prev pointer is storing the current&lt;/p&gt;

&lt;p&gt;&lt;code&gt;while(current){&lt;br&gt;
next = current.next&lt;br&gt;
current.next = prev&lt;br&gt;
prev = current&lt;br&gt;
current = next&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;let discuss the part &lt;/p&gt;

&lt;p&gt;[0,1,2,3,4]&lt;/p&gt;

&lt;p&gt;&lt;code&gt;**prev = null&lt;br&gt;
current = {data:0,next:1}&lt;br&gt;
next = null**&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;saving current.next in next (later use)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;current = {data:0,next:1}
current.next contains {data:1,next:2}
current.next = prev {null}

now current modified {data:0,next:1} to {data:0,next:null}

prev = current so prev is null to {data:0,next:null}

current = next // now next stores the {data:1,next:2}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;// next iteration&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;current = {data:1,next:2}
next = current.next {data:2,next:3}

current.next = prev {data:0,next:null}

now current has {data:1,next:{data:0,next:null}}

prev = current
//{data:0,next:null} to {data:1,next:{data:0,next:null}}

current = next {data:2,next:3}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;//third iteration&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;current = {data:2,next:3}
next = current.next {data:3,next:4}

current.next = prev {data:1,next:{data:0,next:null}}

current has {data:2,next:{data:1,next:{data:0,next:null}}

prev = current
{data:1,next:{data:0,next:null}} to {data:2,next:{data:1,next:{data:0,next:null}}

current = next
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;{data:3,next:4}&lt;/p&gt;

&lt;p&gt;//fourth iteration&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;current = {data:3,next:4}
next = current.next {data:4,next:null}

current.next = prev {data:2,next:{data:1,next:{data:0,next:null}}

current has {data:3,next:{data:2,next:{data:1,next:{data:0,next:null}}}

prev = current
{data:2,next:{data:1,next:{data:0,next:null}} to {data:3,next:{data:2,next:{data:1,next:{data:0,next:null}}}

current = next
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;{data:4,next:null}&lt;/p&gt;

&lt;p&gt;//last iteration&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;current = {data:4,next:null}
next = current.next {null}

current.next = prev {data:3,next:{data:2,next:{data:1,next:{data:0,next:null}}}

current become {data:4,next:{data:3,next:{data:2,next:{data:1,next:{data:0,next:null}}}}

prev = current

current = next
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;completed&lt;br&gt;
happy great coding&lt;/p&gt;

</description>
      <category>linkedlist</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Day</title>
      <dc:creator>Hariprasath</dc:creator>
      <pubDate>Tue, 26 Nov 2024 11:25:23 +0000</pubDate>
      <link>https://dev.to/hashiramasenjuhari/day-189m</link>
      <guid>https://dev.to/hashiramasenjuhari/day-189m</guid>
      <description>&lt;p&gt;Today, I made significant progress on my project by successfully creating a server application in Rust. This server is designed to handle HTTP requests with optimal performance and scalability. The development process was both challenging and rewarding, as I had to leverage multiple tools and technologies to bring the project to life&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
