<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>All About ASP.NET</title>
	
	<link>http://allaboutasp.net</link>
	<description>C#, Algorithms, Interview Questions</description>
	<lastBuildDate>Sat, 01 Sep 2012 21:58:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/allaboutasp" /><feedburner:info uri="allaboutasp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>allaboutasp</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Find out the sum of integers</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/vOn-Ee0y8XA/</link>
		<comments>http://allaboutasp.net/2012/09/find-out-the-sum-of-integers/#comments</comments>
		<pubDate>Sat, 01 Sep 2012 21:58:08 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Integers]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=179</guid>
		<description><![CDATA[If an array is having integers/Char/special Char&#8230; Ex: &#34;PST456DA85M2A!!23++46&#34;, find out the sum of integers. Note: If we find consecutive digits in array we need to treat it as number, let say 456, we need to treat it as [ four hundred and fifty six]. Write a program to get the output by summing 456+85+2+23+46. [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">If an array is having integers/Char/special Char&#8230; Ex: &quot;<strong>PST456DA85M2A!!23++46</strong>&quot;, find out the sum of integers. </p>
<p align="justify">Note: If we find consecutive digits in array we need to treat it as number, let say 456, we need to treat it as [ four hundred and fifty six]. Write a program to get the output by summing 456+85+2+23+46.</p>
<p align="justify">Also this needs to be done in less number of iterations.</p>
<p align="justify">Solution </p>
<pre class="csharpcode">            <span class="kwrd">string</span> inputString = <span class="str">&quot;PST456DA85M2A!!23++4600&quot;</span>;
            <span class="kwrd">char</span>[] inputChars = inputString.ToCharArray();
            <span class="kwrd">double</span> sum = 0;
            <span class="kwrd">double</span> tempnum = 0;
            <span class="kwrd">double</span> powerCounter = 0;
            <span class="kwrd">double</span> num;
            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = inputChars.Length - 1; i &gt;= 0; i--)
            {
                <span class="kwrd">if</span> (inputChars[i] &gt;= 48 &amp;&amp; inputChars[i] &lt;= 57)
                {
                    num = inputChars[i] - 48;
                    tempnum = num * Math.Pow(10, powerCounter) + tempnum;
                    powerCounter = powerCounter + 1;
                }

                <span class="kwrd">else</span>
                {
                    sum = sum + tempnum;
                    powerCounter = 0;
                    tempnum = 0;
                }

            }
            Console.WriteLine();
            Console.WriteLine(inputString);
            Console.WriteLine(sum);
            Console.ReadLine();</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/vOn-Ee0y8XA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/09/find-out-the-sum-of-integers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/09/find-out-the-sum-of-integers/</feedburner:origLink></item>
		<item>
		<title>Write the program to Print Star</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/Y5eM0bmWuqk/</link>
		<comments>http://allaboutasp.net/2012/08/write-the-program-to-print-star/#comments</comments>
		<pubDate>Thu, 02 Aug 2012 11:13:32 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Star Program]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=177</guid>
		<description><![CDATA[Write the program to implement***************** &#160; public static void Star1(int n) { int k = n; int temp = n; Console.WriteLine(); while (n &#62; 0) { for (int i = 0; i &#60; k; i++) { Console.Write("*"); } Console.WriteLine(); n = n - 1; if (n &#62; temp / 2) { k = k - [...]]]></description>
			<content:encoded><![CDATA[<p>Write the program to implement<br />*****<br />***<br />*<br />***<br />*****
<p>&nbsp;
<pre class="csharpcode"><span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> Star1(<span class="kwrd">int</span> n)
    {

      <span class="kwrd">int</span> k = n;
      <span class="kwrd">int</span> temp = n;
      Console.WriteLine();
      <span class="kwrd">while</span> (n &gt; 0)
      {
        <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; k; i++)
        {
          Console.Write(<span class="str">"*"</span>);
        }
        
        Console.WriteLine();
        n = n - 1;
        <span class="kwrd">if</span> (n &gt; temp / 2)
        {
          k = k - 2;
        }
        <span class="kwrd">else</span>
        {
          k = k + 2;
        }

      }
    }</pre>
<pre class="csharpcode">&nbsp;</pre>
<pre class="csharpcode">This program will work for odd values of n</pre>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/Y5eM0bmWuqk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/08/write-the-program-to-print-star/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/08/write-the-program-to-print-star/</feedburner:origLink></item>
		<item>
		<title>Given a number n, print all primes smaller than or equal to n</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/GaIE9mjzxmQ/</link>
		<comments>http://allaboutasp.net/2012/07/given-a-number-n-print-all-primes-smaller-than-or-equal-to-n/#comments</comments>
		<pubDate>Fri, 27 Jul 2012 20:38:24 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Prime Numbers]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=174</guid>
		<description><![CDATA[A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. A natural number greater than 1 that is not a prime number is called a composite number. For example, 5 is prime, as only 1 and 5 divide it. For computing prime [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. A natural number greater than 1 that is not a prime number is called a composite number. For example, 5 is prime, as only 1 and 5 divide it.</p>
<p align="justify">For computing prime numbers we will use Sieve of Eratosthenes algorithm. The sieve of Eratosthenes is one of the most efficient ways to find all of the smaller primes (below 10 million or so).</p>
<h1>Algorithm</h1>
<p>To find all the prime numbers less than or equal to a given integer <i>n</i> by Eratosthenes&#8217; method:</p>
<ol>
<li>Create a list of consecutive integers from 2 to <i>n</i>: (2, 3, 4, &#8230;, <i>n</i>). </li>
<li>Initially, let <i>p</i> equal 2, the first prime number. </li>
<li>Starting from <i>p</i>, count up in increments of <i>p</i> and mark each of these numbers greater than <i>p</i> itself in the list. These numbers will be 2<i>p</i>, 3<i>p</i>, 4<i>p</i>, etc.; note that some of them may have already been marked. </li>
<li>Find the first number greater than <i>p</i> in the list that is not marked. If there was no such number, stop. Otherwise, let <i>p</i> now equal this number (which is the next prime), and repeat from step 3.</li>
</ol>
<p>When the algorithm terminates, all the numbers in the list that are not marked are prime</p>
<pre class="csharpcode"> <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> PrimeNumber(<span class="kwrd">int</span> n)
    {
      <span class="kwrd">int</span>[] numbers = <span class="kwrd">new</span> <span class="kwrd">int</span>[n + 1];
      <span class="kwrd">if</span> (n &lt; 0)
      {
        Console.WriteLine(<span class="str">&quot;invalid value&quot;</span>);
        <span class="kwrd">return</span>;
      }
      <span class="kwrd">if</span> (n &lt; 3)
      {
        Console.WriteLine(<span class="str">&quot;Prime number is : 2&quot;</span>);
        <span class="kwrd">return</span>;

      }


      <span class="kwrd">int</span> p = 0;
      <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 2; i &lt;= n; i++)
      {
        <span class="kwrd">if</span> (numbers[i] == 0)
        {
          p = i;
          <span class="kwrd">for</span> (<span class="kwrd">int</span> j = 2; p * j &lt;= n; j++)
          {
            numbers[p * j] = 1;
          }
        }
      }

      <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 2; i &lt;= n; i++)
      {
        <span class="kwrd">if</span> (numbers[i] == 0) Console.Write(i + <span class="str">&quot; , &quot;</span>);
      }


    }</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/GaIE9mjzxmQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/given-a-number-n-print-all-primes-smaller-than-or-equal-to-n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/given-a-number-n-print-all-primes-smaller-than-or-equal-to-n/</feedburner:origLink></item>
		<item>
		<title>Reverse the word in a string</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/CZDgOPwNOj4/</link>
		<comments>http://allaboutasp.net/2012/07/reverse-the-word-in-a-string/#comments</comments>
		<pubDate>Wed, 25 Jul 2012 21:30:47 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=172</guid>
		<description><![CDATA[For reversing the word in a string I used following algorithm Traverse the string and push the characters in stack, until we get space When space is encountered, pop the element from stack and enqueue in queue enqueue the spaces in queue once the traverse is complete add the last word in queue Stack is [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">For reversing the word in a string I used following algorithm</p>
<ol>
<li>
<div align="justify">Traverse the string and push the characters in stack, until we get space</div>
</li>
<li>
<div align="justify">When space is encountered, pop the element from stack and enqueue in queue</div>
</li>
<li>
<div align="justify">enqueue the spaces in queue</div>
</li>
<li>
<div align="justify">once the traverse is complete add the last word in queue</div>
</li>
</ol>
<p align="justify">Stack is used to reverse the characters and queue is used to maintain the order of characters </p>
<p align="justify">&#160;</p>
<pre class="csharpcode">   <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> ReverseWordOfString(<span class="kwrd">string</span> s)
    {
      <span class="kwrd">if</span> (<span class="kwrd">string</span>.IsNullOrEmpty(s))
      {
        Console.WriteLine(<span class="str">&quot;String is empty&quot;</span>);
        <span class="kwrd">return</span>;
      }

      Stack&lt;<span class="kwrd">char</span>&gt; charStack = <span class="kwrd">new</span> Stack&lt;<span class="kwrd">char</span>&gt;();
      var charArray = s.ToCharArray();
      <span class="kwrd">int</span> length = charArray.Length;
      Queue&lt;<span class="kwrd">char</span>&gt; result = <span class="kwrd">new</span> Queue&lt;<span class="kwrd">char</span>&gt;();
      Console.WriteLine(<span class="str">&quot;input string : {0}&quot;</span>, s);
      <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; length; i++)
      {
        <span class="kwrd">if</span> (charArray[i] != <span class="str">' '</span>)
        {
          charStack.Push(charArray[i]);
        }
        <span class="kwrd">else</span>
        {
          <span class="kwrd">while</span> (charStack.Count &gt; 0)
          {
            result.Enqueue(charStack.Pop());
          }
          result.Enqueue(<span class="str">' '</span>);
        }
      }
      <span class="kwrd">while</span> (charStack.Count &gt; 0)
      {
        result.Enqueue(charStack.Pop());

      }

      Console.Write(<span class="str">&quot;String After reversing the words : &quot;</span>);
      Console.Write(result.ToArray());
      Console.WriteLine();

    }</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/CZDgOPwNOj4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/reverse-the-word-in-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/reverse-the-word-in-a-string/</feedburner:origLink></item>
		<item>
		<title>RIL : Given AAABBGFF should get an output 3{A} 2{B}1{G}2{F}</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/EFhADP-pX5A/</link>
		<comments>http://allaboutasp.net/2012/07/ril-given-aaabbgff-should-get-an-output-3a-2b1g2f/#comments</comments>
		<pubDate>Wed, 25 Jul 2012 04:52:42 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Algorithm]]></category>
		<category><![CDATA[RIL]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=170</guid>
		<description><![CDATA[Run-length encoding (RLE) is a very simple form of data compression in which runs of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most useful on data that contains many [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Run-length encoding (<a href="http://en.wikipedia.org/wiki/Run-length_encoding" target="_blank">RLE</a>) is a very simple form of data compression in which runs of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most useful on data that contains many such runs: for example, simple graphic images such as icons, line drawings, and animations. It is not useful with files that don&#8217;t have many runs as it could greatly increase the file size.</p>
<pre class="csharpcode">  <span class="rem">/// &lt;summary&gt;</span>
        <span class="rem">/// Given AAABBGFF should get an output 3{A} 2{B}1{G}2{F}</span>
        <span class="rem">/// http://en.wikipedia.org/wiki/Run-length_encoding</span>
        <span class="rem">/// &lt;/summary&gt;</span>
        <span class="rem">/// &lt;param name=&quot;input&quot;&gt;&lt;/param&gt;</span>
        <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> RIL(<span class="kwrd">string</span> input)
        {
            Console.Write(input + <span class="str">&quot; : &quot;</span> );
            StringBuilder output = <span class="kwrd">new</span> StringBuilder();
            <span class="kwrd">int</span> charCount = 0;
            var inputChars = input.ToCharArray();
            <span class="kwrd">char</span> currentChar, nextChar;
            currentChar = nextChar = inputChars[0];

            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; inputChars.Length; i++)
            {
                currentChar = inputChars[i];
                <span class="kwrd">if</span> (i + 1 &lt; inputChars.Length)
                {
                   
                    nextChar = inputChars[i + 1];
                }
                <span class="kwrd">if</span> (currentChar  != nextChar )
                {

                    output.Append(charCount + 1);
                    output.Append(<span class="str">&quot;{&quot;</span>);
                    output.Append(currentChar);
                    output.Append(<span class="str">&quot;}&quot;</span>);
                    charCount = 0;
                
                }
                <span class="kwrd">else</span> {
                    charCount++;
                }
            }
            output.Append(charCount );
            output.Append(<span class="str">&quot;{&quot;</span>);
            output.Append(currentChar);
            output.Append(<span class="str">&quot;}&quot;</span>);
            
            Console.Write(output.ToString());
            Console.WriteLine();

        }</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>Test Cases</p>
<ol>
<li>AAABBGFF : 3{A}2{B}1{G}2{F} </li>
<li>WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWW WWWWWWBWWWWWWWWWWWWWW : 12{W}1{B}12{W}3{B}24{W}1{B}14{W} </li>
<li>AAABBGGGGGGGGFFXXXXXXTTTTTyyyyyyvvvvv : 3{A}2{B}8{G}2{F}6{X}5{T}6{y}5{v} </li>
<li>AAAABBCCCCCCCBBCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD :<br />
    <br />4{A}2{B}7{C}2{B}4{C}38{D} </li>
</ol>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/EFhADP-pX5A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/ril-given-aaabbgff-should-get-an-output-3a-2b1g2f/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/ril-given-aaabbgff-should-get-an-output-3a-2b1g2f/</feedburner:origLink></item>
		<item>
		<title>In a clock, calculate the angle between hour and minute handle</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/TuIRWYIEsC4/</link>
		<comments>http://allaboutasp.net/2012/07/in-a-clock-calculate-the-angle-between-hour-and-minute-handle/#comments</comments>
		<pubDate>Sat, 21 Jul 2012 08:52:19 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Algorithm]]></category>
		<category><![CDATA[Clock Angle Problem]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=168</guid>
		<description><![CDATA[A method to solve such problems is to consider the rate of change of the angle in degrees per minute. The hour hand of a normal 12-hour analogue clock turns 360° in 12 hours (720 minutes) or 0.5° per minute. The minute hand rotates through 360° in 60 minutes or 6° per minute. Equation for [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">A method to solve such problems is to consider the rate of change of the angle in degrees per minute. The hour hand of a normal 12-hour analogue clock turns 360° in 12 hours (720 minutes) or 0.5° per minute. The minute hand rotates through 360° in 60 minutes or 6° per minute.</p>
<h1>Equation for the angle of the hour hand</h1>
<h1>Θ<sub>H = (60H+M)/2</sub></h1>
<h1>&#160;</h1>
<h1>Equation for the degrees on the minute hand</h1>
<h1>Θ<sub>M</sub>= 6M</h1>
<p>M= Minute and H = Hour</p>
<p>Angle between Hour and minute handle</p>
<h1>Θ<sub>H </sub>- Θ<sub>M</sub></h1>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/TuIRWYIEsC4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/in-a-clock-calculate-the-angle-between-hour-and-minute-handle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/in-a-clock-calculate-the-angle-between-hour-and-minute-handle/</feedburner:origLink></item>
		<item>
		<title>Given three corner points of a triangle, and one more point x. WAP to check whether x lies within the triangle or not.</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/ScGy7QnHtRo/</link>
		<comments>http://allaboutasp.net/2012/07/given-three-corner-points-of-a-triangle-and-one-more-point-x-wap-to-check-whether-x-lies-within-the-triangle-or-not/#comments</comments>
		<pubDate>Sat, 21 Jul 2012 08:16:26 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Area of Triangle]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=166</guid>
		<description><![CDATA[Co-ordinate of triangle: A(x1, y1), B(x2, y2), C(x3, y3) and Point P (x, y). Approach: Calculate the area triangle that is are of triangle ABC. Area A Calculate the area of PAB. Area A1 Calculate the area of PBC. Area A2 Calculate the area PCA. Area A3 If Point P lies outside the triangle than [...]]]></description>
			<content:encoded><![CDATA[<p>Co-ordinate of triangle: A(x1, y1), B(x2, y2), C(x3, y3) and Point P (x, y). </p>
<h2>Approach: </h2>
<ol>
<li>Calculate the area triangle that is are of triangle ABC. Area A</li>
<li>Calculate the area of PAB. Area A1</li>
<li>Calculate the area of PBC. Area A2</li>
<li>Calculate the area PCA. Area A3</li>
<li>If Point P lies outside the triangle than A1+A2+A3 &gt;A.</li>
</ol>
<p>Area of Triangle: [x1*(y2-y3) + x2*(y3-y1) + x3*(y1-y2)]/2</p>
<p>In above approach, we will have precision problem because we are dividing the result by 2. So to handle this issue, by taking off 2 times of triangle are.</p>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/ScGy7QnHtRo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/given-three-corner-points-of-a-triangle-and-one-more-point-x-wap-to-check-whether-x-lies-within-the-triangle-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/given-three-corner-points-of-a-triangle-and-one-more-point-x-wap-to-check-whether-x-lies-within-the-triangle-or-not/</feedburner:origLink></item>
		<item>
		<title>sub list of a sorted (ascending order)link list is reversed. correct it</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/ff34PQJGcOo/</link>
		<comments>http://allaboutasp.net/2012/07/sub-list-of-a-sorted-ascending-orderlink-list-is-reversed-correct-it/#comments</comments>
		<pubDate>Fri, 20 Jul 2012 13:06:31 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[LinkList]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=164</guid>
		<description><![CDATA[sub list of a sorted (ascending order)link list is reversed. correct it. Input 1-&#62;2-&#62;3-&#62;4-&#62;8-&#62;7-&#62;6-&#62;5-&#62;9-&#62;10-&#62;11 Output 1-&#62;2-&#62;3-&#62;4-&#62;5-&#62;6-&#62;7-&#62;8-&#62;9-&#62;10-&#62;11 To solve this problem : Find the pointer, from dis order starts say first Find the pointer where dis order ends say last node Setting next of last node to null Reverse the linked list from first to last [...]]]></description>
			<content:encoded><![CDATA[<p>sub list of a sorted (ascending order)link list is reversed. correct it.</p>
<p>Input    <br />1-&gt;2-&gt;3-&gt;4-&gt;8-&gt;7-&gt;6-&gt;5-&gt;9-&gt;10-&gt;11     <br />Output     <br />1-&gt;2-&gt;3-&gt;4-&gt;5-&gt;6-&gt;7-&gt;8-&gt;9-&gt;10-&gt;11     </p>
<p>To solve this problem :</p>
<ol>
<li>Find the pointer, from dis order starts say first </li>
<li>Find the pointer where dis order ends say last node </li>
<li>Setting next of last node to null </li>
<li>Reverse the linked list from first to last </li>
<li>join the linked list with reversed linked list </li>
<li>join the linked list with remaining list </li>
</ol>
<p>Node Class : Used for Creating Link List</p>
<pre class="csharpcode"><span class="kwrd">public</span> <span class="kwrd">class</span> Node&lt;T&gt;
  {
    <span class="kwrd">private</span> T nodeValue;
    <span class="kwrd">private</span> Node&lt;T&gt; nextNode;

    <span class="kwrd">public</span> Node()
    {
      <span class="kwrd">this</span>.nodeValue = <span class="kwrd">default</span>(T);
      <span class="kwrd">this</span>.nextNode = <span class="kwrd">null</span>;
    }

    <span class="kwrd">public</span> Node(T nodeValue)
    {
      <span class="kwrd">this</span>.nodeValue = nodeValue;
      <span class="kwrd">this</span>.nextNode = <span class="kwrd">null</span>;
    }

    <span class="rem">/// &lt;summary&gt;</span>
    <span class="rem">/// Value of node</span>
    <span class="rem">/// &lt;/summary&gt;</span>
    <span class="kwrd">public</span> T NodeValue
    {
      get { <span class="kwrd">return</span> nodeValue; }
      set { <span class="kwrd">this</span>.nodeValue = <span class="kwrd">value</span>; }
    }

    <span class="rem">/// &lt;summary&gt;</span>
    <span class="rem">/// The node this node links to</span>
    <span class="rem">/// &lt;/summary&gt;</span>
    <span class="kwrd">public</span> Node&lt;T&gt; NextNode
    {
      get { <span class="kwrd">return</span> <span class="kwrd">this</span>.nextNode; }
      set { <span class="kwrd">this</span>.nextNode = <span class="kwrd">value</span>; }
    }
  }</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<pre class="csharpcode">    <span class="rem">/// &lt;summary&gt;</span>
    <span class="rem">/// 1---&gt;2---&gt;3---&gt;4---&gt;9---&gt;8--&gt;7---&gt;6---&gt;5---&gt;10---&gt;11---&gt;NULL</span>
    <span class="rem">/// &lt;/summary&gt;</span>
    <span class="rem">/// &lt;param name=&quot;head&quot;&gt;&lt;/param&gt;</span>
    <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> correctList(Node&lt;<span class="kwrd">int</span>&gt; head)
    {

      <span class="kwrd">if</span> (head == <span class="kwrd">null</span>)
      {
        Console.WriteLine(<span class="str">&quot;Empty List&quot;</span>);
        <span class="kwrd">return</span>;
      }

      Node&lt;<span class="kwrd">int</span>&gt; current = head;
      Node&lt;<span class="kwrd">int</span>&gt; first = <span class="kwrd">null</span>;
      Node&lt;<span class="kwrd">int</span>&gt; last = <span class="kwrd">null</span>;
      Node&lt;<span class="kwrd">int</span>&gt; mark1 = <span class="kwrd">null</span>;

      <span class="kwrd">while</span> (current != <span class="kwrd">null</span> &amp;&amp; current.NodeValue &lt; current.NextNode.NodeValue)
      {
        mark1 = current;
        current = current.NextNode;
      }

      first = current; <span class="rem">//Pointer to node, LL Disorder starts</span>

      <span class="kwrd">while</span> (current != <span class="kwrd">null</span> &amp;&amp; current.NodeValue &gt; current.NextNode.NodeValue)
        current = current.NextNode;


      last = current.NextNode; <span class="rem">//Pointer to node, LL Disorder Ends</span>

      current.NextNode = <span class="kwrd">null</span>; <span class="rem">// Setting next of last node to null</span>

      Reverse(<span class="kwrd">ref</span> first);<span class="rem">//reverse the sub list that dis order starts to disorder ends</span>

      mark1.NextNode = first; <span class="rem">// join the initial linklist with reversed linkedlist </span>

      <span class="kwrd">while</span> (first.NextNode != <span class="kwrd">null</span>)
      {
        first = first.NextNode;
      }

      first.NextNode = last; <span class="rem">// join the merged link list with sorted linklist</span>
      Console.WriteLine();
      Console.WriteLine(<span class="str">&quot;Output&quot;</span>);
      
      PrintList(head);
      Console.WriteLine();

    }

    <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> Reverse(<span class="kwrd">ref</span> Node&lt;<span class="kwrd">int</span>&gt; head)
    {

      Node&lt;<span class="kwrd">int</span>&gt; first;
      Node&lt;<span class="kwrd">int</span>&gt; rest;
      <span class="kwrd">if</span> (head == <span class="kwrd">null</span>) <span class="kwrd">return</span>;
      first = head;
      rest = first.NextNode;
      <span class="kwrd">if</span> (rest == <span class="kwrd">null</span>) <span class="kwrd">return</span>;
      Reverse(<span class="kwrd">ref</span> rest);
      first.NextNode.NextNode = first;
      first.NextNode = <span class="kwrd">null</span>;
      head = rest;

    }
    <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> PrintList(Node&lt;<span class="kwrd">int</span>&gt; head)
    {
      <span class="kwrd">while</span> (head != <span class="kwrd">null</span>)
      {
        Console.Write(head.NodeValue);
        head = head.NextNode;
        <span class="kwrd">if</span> (head != <span class="kwrd">null</span>) Console.Write(<span class="str">&quot;-&gt;&quot;</span>);
      }

    }</pre>
<h2>Main Program</h2>
<pre class="csharpcode">      Node&lt;<span class="kwrd">int</span>&gt; a = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(1);
      Node&lt;<span class="kwrd">int</span>&gt; a1 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(2);
      Node&lt;<span class="kwrd">int</span>&gt; a2 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(3);
      Node&lt;<span class="kwrd">int</span>&gt; a3 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(4);
      Node&lt;<span class="kwrd">int</span>&gt; a4 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(8);
      Node&lt;<span class="kwrd">int</span>&gt; a5 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(7);
      Node&lt;<span class="kwrd">int</span>&gt; a6 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(6);
      Node&lt;<span class="kwrd">int</span>&gt; a7 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(5);
      Node&lt;<span class="kwrd">int</span>&gt; a8 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(9);
      Node&lt;<span class="kwrd">int</span>&gt; a9 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(10);
      Node&lt;<span class="kwrd">int</span>&gt; a10 = <span class="kwrd">new</span> Node&lt;<span class="kwrd">int</span>&gt;(11);

      a.NextNode = a1;
      a1.NextNode = a2;
      
      a2.NextNode = a3;
      
      a3.NextNode = a4;
      
      a4.NextNode = a5;
      
      a5.NextNode = a6;
      
      a6.NextNode = a7;
      
      a7.NextNode = a8;
      
      a8.NextNode = a9;

      a9.NextNode = a10;
      
      a10.NextNode = <span class="kwrd">null</span>;
      Console.WriteLine(<span class="str">&quot;Input&quot;</span>);
      Microsoft.PrintList(a);
      Microsoft.correctList(a);</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/ff34PQJGcOo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/sub-list-of-a-sorted-ascending-orderlink-list-is-reversed-correct-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/sub-list-of-a-sorted-ascending-orderlink-list-is-reversed-correct-it/</feedburner:origLink></item>
		<item>
		<title>Given a set S of n integers, are there elements a, b, c in S such that a + b + c = 0?</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/nJFQmXhfw_w/</link>
		<comments>http://allaboutasp.net/2012/07/given-a-set-s-of-n-integers-are-there-elements-a-b-c-in-s-such-that-a-b-c-0/#comments</comments>
		<pubDate>Fri, 20 Jul 2012 03:01:29 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[3Sum Problem]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=161</guid>
		<description><![CDATA[In computational complexity theory, 3SUM is the following computational problem conjectured to require roughly quadratic time: Given a set S of n integers, are there elements a, b, c in S such that a + b + c = 0? It is possible to solve the algorithm in O(n2) time using simple algorithms, and matching [...]]]></description>
			<content:encoded><![CDATA[<p>In computational complexity theory, 3SUM is the following computational problem conjectured to require roughly quadratic time: </p>
<blockquote><p>Given a set S of n integers, are there elements a, b, c in S such that a + b + c = 0? </p>
</blockquote>
<p>It is possible to solve the algorithm in O(n2) time using simple algorithms, and matching lower bounds are known for some specialized models of computation.</p>
<p>The program mentioned below works only with <strong><font color="#ff0000">sorted List</font></strong></p>
<pre class="csharpcode"> <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> SortedList3SumProblem(<span class="kwrd">int</span>[] inputArray)
    {
      <span class="kwrd">int</span> a, b, c;
      <span class="kwrd">int</span> length = inputArray.Length;
      <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; length - 3; i++)
      {

        a = inputArray[i];
        <span class="kwrd">int</span> k = i + 1;
        <span class="kwrd">int</span> l = length  - 1;

        <span class="kwrd">while</span> (k &lt; l)
        {
          b = inputArray[k];
          c = inputArray[l];
          <span class="kwrd">if</span> (a + b + c == 0)
          {
            Console.WriteLine(a + <span class="str">&quot;,&quot;</span> + b + <span class="str">&quot;,&quot;</span> + c); ;
            <span class="kwrd">break</span>;
          }
          <span class="kwrd">else</span> <span class="kwrd">if</span> (a + b + c &gt; 0)
            l = l - 1;
          <span class="kwrd">else</span>
            k = k + 1;
        }

      }
    }</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<h1>Input </h1>
<p> 0, -25, -10, -7, -3, 2, 4, 8, 10 </p>
<h1>Output</h1>
<p>Input Array<br />
  <br />0;-25;-10;-7;-3;2;4;8;10</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>0,-10,10</p>
<p>-10,2,8</p>
<p>-7,-3,10</p>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/nJFQmXhfw_w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/given-a-set-s-of-n-integers-are-there-elements-a-b-c-in-s-such-that-a-b-c-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/given-a-set-s-of-n-integers-are-there-elements-a-b-c-in-s-such-that-a-b-c-0/</feedburner:origLink></item>
		<item>
		<title>A list contains repeated numbers , all the numbers are repeated odd number of times except one which is repeated even number of time. WAP to find out that number ( which is repeated even number of times)</title>
		<link>http://feedproxy.google.com/~r/allaboutasp/~3/50StdRTs2ys/</link>
		<comments>http://allaboutasp.net/2012/07/a-list-contains-repeated-numbers-all-the-numbers-are-repeated-odd-number-of-times-except-one-which-is-repeated-even-number-of-time-wap-to-find-out-that-number-which-is-repeated-even-number-of-tim/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 08:15:22 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Array]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/?p=158</guid>
		<description><![CDATA[public static void RepeatedEvenTimes(int[] inputArray) { Dictionary&#60;int, int&#62; numbers = new Dictionary&#60;int, int&#62;(); int length = inputArray.Length; int num = -1; for (int i = 0; i &#60; length; i++) { if (numbers.Keys.Contains(inputArray[i])) { numbers[inputArray[i]] = numbers[inputArray[i]] + 1; } else { numbers.Add(inputArray[i], 1); } } Console.Write("input Array "); Console.WriteLine(string.Join(",", inputArray)); foreach (var item in [...]]]></description>
			<content:encoded><![CDATA[<pre class="csharpcode"> <span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> RepeatedEvenTimes(<span class="kwrd">int</span>[] inputArray)
    {
      Dictionary&lt;<span class="kwrd">int</span>, <span class="kwrd">int</span>&gt; numbers = <span class="kwrd">new</span> Dictionary&lt;<span class="kwrd">int</span>, <span class="kwrd">int</span>&gt;();
      <span class="kwrd">int</span> length = inputArray.Length;
      <span class="kwrd">int</span> num = -1;
      <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; length; i++)
      {
        <span class="kwrd">if</span> (numbers.Keys.Contains(inputArray[i]))
        {
          numbers[inputArray[i]] = numbers[inputArray[i]] + 1;
        }
        <span class="kwrd">else</span>
        {

          numbers.Add(inputArray[i], 1);
        }
      }

      Console.Write(<span class="str">"input Array "</span>);
      Console.WriteLine(<span class="kwrd">string</span>.Join(<span class="str">","</span>, inputArray));

      <span class="kwrd">foreach</span> (var item <span class="kwrd">in</span> numbers)
      {
        <span class="kwrd">if</span> (item.Value % 2 == 0)
        {
          num = item.Key;
          Console.WriteLine(<span class="str">"{0} Repeated {1} times "</span>, item.Key, item.Value);
          <span class="kwrd">break</span>;
        }

      }

      <span class="kwrd">if</span> (num == -1)
      {
        Console.WriteLine(<span class="str">"No number Repeated even number of times"</span>);
      }

      Console.WriteLine(<span class="str">"-----------------------------------------------"</span>);
    }</pre>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<pre class="csharpcode">&nbsp;</pre>
<p>input Array 3,3,3,5,5,5,2,2,2<br />No number Repeated even number of times<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />input Array 100,1,1,3,5,3,3<br />1 Repeated 2 times<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />input Array 2,2,2,2,2<br />No number Repeated even number of times<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<img src="http://feeds.feedburner.com/~r/allaboutasp/~4/50StdRTs2ys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2012/07/a-list-contains-repeated-numbers-all-the-numbers-are-repeated-odd-number-of-times-except-one-which-is-repeated-even-number-of-time-wap-to-find-out-that-number-which-is-repeated-even-number-of-tim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://allaboutasp.net/2012/07/a-list-contains-repeated-numbers-all-the-numbers-are-repeated-odd-number-of-times-except-one-which-is-repeated-even-number-of-time-wap-to-find-out-that-number-which-is-repeated-even-number-of-tim/</feedburner:origLink></item>
	</channel>
</rss>
