<?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: Yesh Rajawat</title>
    <description>The latest articles on DEV Community by Yesh Rajawat (@yeshrajawat).</description>
    <link>https://dev.to/yeshrajawat</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%2F602200%2F17cd65bb-84ba-44a8-a734-6da4af726bd8.jpg</url>
      <title>DEV Community: Yesh Rajawat</title>
      <link>https://dev.to/yeshrajawat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yeshrajawat"/>
    <language>en</language>
    <item>
      <title>Recursion | Count the number of Zeros in a number</title>
      <dc:creator>Yesh Rajawat</dc:creator>
      <pubDate>Mon, 21 Feb 2022 12:38:38 +0000</pubDate>
      <link>https://dev.to/yeshrajawat/recursion-count-the-number-of-zeros-in-a-number-19jb</link>
      <guid>https://dev.to/yeshrajawat/recursion-count-the-number-of-zeros-in-a-number-19jb</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class CountZeros {


    public static int countZeros(int n) {
        if(n==0) {
            return 1;
        }
        else {
            return countZero(n);
        }
    }

    public static int countZero(int n) {

        if(n&amp;lt;10) {

            if(n==0)
            {
            return 1;}
            else {
                 return 0;
            }
        }
        else {
            int temp = n%10;
            n = n /10;
            if(temp==0) {
                return 1 + countZeros(n);
            }
            return countZeros(n);
        }


    }

    public static void main(String ... args) {

        System.out.println(countZeros(110110));

    }

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Check whether a number is in an array or not using recursion</title>
      <dc:creator>Yesh Rajawat</dc:creator>
      <pubDate>Mon, 14 Feb 2022 05:55:32 +0000</pubDate>
      <link>https://dev.to/yeshrajawat/check-whether-a-number-is-in-an-array-or-not-using-recursion-35lc</link>
      <guid>https://dev.to/yeshrajawat/check-whether-a-number-is-in-an-array-or-not-using-recursion-35lc</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Check_Number {


    public static boolean checkNumber(int i , int find, int []arr) {

        if(i==arr.length) {
            return false;
        }
        else {
            if( arr[i] == find ) {

                return true;

            }
            else {

                return checkNumber(i+1,find,arr); 

            }
        }

    }

    public static void main(String ... args) {

        int [] arr = {1,2,3,4,5,6,7};
        System.out.println(checkNumber(0,10,arr));

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>3 Basic Questions on Recursion</title>
      <dc:creator>Yesh Rajawat</dc:creator>
      <pubDate>Sun, 13 Feb 2022 18:15:59 +0000</pubDate>
      <link>https://dev.to/yeshrajawat/3-basic-questions-on-recursion-2nao</link>
      <guid>https://dev.to/yeshrajawat/3-basic-questions-on-recursion-2nao</guid>
      <description>&lt;h2&gt;
  
  
  Print you Name N times
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class N_times {

    public static void printNTimes(int n, String name) {
        if(n==0) {
            return ;
        }
        else {
            System.out.println(name);
            printNTimes(n-1,name);
        }

    }

    public static void main(String ...args) {

        printNTimes(10,"yesh");

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Print 1 TO N in recursion
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package recursion;

public class Print_N {


    public static void print_1_to_N(int n) {

        if(n==0) {
            return ;
        }
        else {

            print_1_to_N(n-1);
            System.out.println(n);
        }
    }



    public static void main(String ... args)
{

        print_1_to_N(10);
}
}

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Sum of an Array
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
public class Sum_Of_Array {
 public static int sum_Array(int n, int[]arr){

     if(n==-1) {
         return 0;
     }
     else {

         int sum = sum_Array(n-1,arr);
         System.out.println(arr[n]+ sum);
         return arr[n] + sum;
     }

}


    public static void main(String[] args) {
        // TODO Auto-generated method stub

        int arr[] = {1,2,3,4,5,-7};
        System.out.println(sum_Array(5,arr));
    }

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Starting With Recursion(Again)......</title>
      <dc:creator>Yesh Rajawat</dc:creator>
      <pubDate>Sun, 13 Feb 2022 18:01:19 +0000</pubDate>
      <link>https://dev.to/yeshrajawat/starting-with-recursionagain-1hg5</link>
      <guid>https://dev.to/yeshrajawat/starting-with-recursionagain-1hg5</guid>
      <description>&lt;p&gt;I am going to start the topic of recursion again, as placements are approaching I will be posting each and every question I solve, even if it is an beginner's question, I will make sure I write an article on it so that I will have a count of questions that I have solved and I would remember how I approached the question to solve it.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Journey begins | Jinxx</title>
      <dc:creator>Yesh Rajawat</dc:creator>
      <pubDate>Sun, 06 Feb 2022 08:51:19 +0000</pubDate>
      <link>https://dev.to/yeshrajawat/journey-begins-jinxx-1p31</link>
      <guid>https://dev.to/yeshrajawat/journey-begins-jinxx-1p31</guid>
      <description>&lt;p&gt;Day 0 &lt;br&gt;
I have decided to write tech related post from today, things that I will be learning, things which i get to know, interesting projects and many more. I will give my 100 percent to make sure that my blog/article comes up daily from now. I am doing this for me so that i can add an habit of writing some thing and it will also help me remember the things which I have learned, and yes it will increase my tying speed as well.&lt;/p&gt;

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