<?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: Tech Dev</title>
    <description>The latest articles on DEV Community by Tech Dev (@rakshathushetty).</description>
    <link>https://dev.to/rakshathushetty</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%2F1247390%2Ff666c11f-5746-4ce4-ab08-2ec8399cf125.jpg</url>
      <title>DEV Community: Tech Dev</title>
      <link>https://dev.to/rakshathushetty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rakshathushetty"/>
    <language>en</language>
    <item>
      <title>Answer: finding cycles in directed graph using algorithm design manual</title>
      <dc:creator>Tech Dev</dc:creator>
      <pubDate>Wed, 24 Jan 2024 15:05:23 +0000</pubDate>
      <link>https://dev.to/rakshathushetty/answer-finding-cycles-in-directed-graph-using-algorithm-design-manual-3gjb</link>
      <guid>https://dev.to/rakshathushetty/answer-finding-cycles-in-directed-graph-using-algorithm-design-manual-3gjb</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77355752/finding-cycles-in-directed-graph-using-algorithm-design-manual/77874082#77874082" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: finding cycles in directed graph using algorithm design manual
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan 24 '24&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77355752/finding-cycles-in-directed-graph-using-algorithm-design-manual/77874082#77874082" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Good Code, But there is logical error in line no. 57, 58 and 66 (in the code link)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Line no. 57:-&lt;/strong&gt;
check for edge case &lt;strong&gt;i &amp;lt; n-1&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Line no. 58 and 62:-&lt;/strong&gt;
&lt;strong&gt;Return boolean value&lt;/strong&gt;, returning answer doesn't give correct ans&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;i. case(in line 58):&lt;/strong&gt; // Graph should…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77355752/finding-cycles-in-directed-graph-using-algorithm-design-manual/77874082#77874082" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;a href="https://stackoverflow.com/a/77874082/23167967"&gt;https://stackoverflow.com/a/77874082/23167967&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day 2 in StackOverflow:- Leetcode showing empty output even though the output is coming correctly</title>
      <dc:creator>Tech Dev</dc:creator>
      <pubDate>Wed, 03 Jan 2024 09:26:33 +0000</pubDate>
      <link>https://dev.to/rakshathushetty/day-2-in-stackoverflow-leetcode-showing-empty-output-even-though-the-output-is-coming-correctly-1ngd</link>
      <guid>https://dev.to/rakshathushetty/day-2-in-stackoverflow-leetcode-showing-empty-output-even-though-the-output-is-coming-correctly-1ngd</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77750466/answer-shows-different-even-though-the-output-is-coming-correctly/77750781#77750781" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Answer shows different even though the output is coming correctly
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan  3 '24&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77750466/answer-shows-different-even-though-the-output-is-coming-correctly/77750781#77750781" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Ok, The question is based on Inplace operations and your logic is quite correct. I will explain with 3 things so it will be clear to you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Good programming practice:-&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The output yields [], because there is clear statement in 19th line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//19 nums.clear()
//20 nums=nonZeroArray;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Idea:-&lt;/strong&gt; nums is…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77750466/answer-shows-different-even-though-the-output-is-coming-correctly/77750781#77750781" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Day 1:- Contributing in StackOverflow</title>
      <dc:creator>Tech Dev</dc:creator>
      <pubDate>Wed, 03 Jan 2024 09:24:49 +0000</pubDate>
      <link>https://dev.to/rakshathushetty/day-1-contributing-in-stackoverflow-answer-html-tag-in-ejs-then-block-doesnt-show-up-1no0</link>
      <guid>https://dev.to/rakshathushetty/day-1-contributing-in-stackoverflow-answer-html-tag-in-ejs-then-block-doesnt-show-up-1no0</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77743908/html-tag-in-ejs-then-block-doesnt-show-up/77744404#77744404" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Html tag in ejs then block doesn't show up
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan  2 '24&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77743908/html-tag-in-ejs-then-block-doesnt-show-up/77744404#77744404" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You can do it in a better way, to display content in browser:-&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Idea:-&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In res.render({}), which is inside async-await function, send parameter to ejs that you want to display in browser.&lt;/li&gt;
&lt;li&gt;In ejs, this tag ( &amp;lt;%= &amp;gt; ) helps you to access the value sent by calling file…&lt;/li&gt;
&lt;/ol&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77743908/html-tag-in-ejs-then-block-doesnt-show-up/77744404#77744404" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


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