<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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/"
	>

<channel>
	<title>what is the biggest four digit number - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/what-is-the-biggest-four-digit-number/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-the-biggest-four-digit-number/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 13 Sep 2021 12:24:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>what is the biggest four digit number - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-the-biggest-four-digit-number/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Find Largest number from set of given numbers ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/find-largest-number-from-set-of-given-numbers/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/find-largest-number-from-set-of-given-numbers/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 23:08:03 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[arrange given numbers to form the biggest number c#]]></category>
		<category><![CDATA[arrange given numbers to form the biggest number in c++]]></category>
		<category><![CDATA[arrange given numbers to form the biggest number in python]]></category>
		<category><![CDATA[arrange given numbers to form the biggest number java]]></category>
		<category><![CDATA[arrange given numbers to form the biggest number javascript]]></category>
		<category><![CDATA[arrange the numbers to form the biggest number]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[biggest number ever]]></category>
		<category><![CDATA[biggest numbers list]]></category>
		<category><![CDATA[biggest possible number]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[find largest number possible by rearranging the number.]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Harman International interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[infrrd interview questions and answers]]></category>
		<category><![CDATA[largest concatenated number in c]]></category>
		<category><![CDATA[largest number formed from an array in c++]]></category>
		<category><![CDATA[largest possible number with digits in c]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></category>
		<category><![CDATA[Mathworks India Private Limited interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Philips Software Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></category>
		<category><![CDATA[Symphony Teleca interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tecnotree interview questions and answers]]></category>
		<category><![CDATA[the biggest number]]></category>
		<category><![CDATA[what is the biggest four digit number]]></category>
		<category><![CDATA[what is the biggest number]]></category>
		<category><![CDATA[what is the biggest number besides infinity]]></category>
		<category><![CDATA[what is the biggest number ever]]></category>
		<category><![CDATA[what is the biggest number possibleis google the biggest number]]></category>
		<category><![CDATA[what is the biggest number with three 3's]]></category>
		<category><![CDATA[what's the biggest number]]></category>
		<category><![CDATA[which is the biggest number]]></category>
		<category><![CDATA[which number is the biggest]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[write a program to arrange them such that they form the largest number.]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=396</guid>

					<description><![CDATA[Answer : Find number of digits in the largest number. Let us assume number of digits be n...
]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="find-largest-number-from-set-of-given-numbers" class="color-pink" style="text-align: justify;">Find Largest number from set of given numbers ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Find number of digits in the largest number. Let us assume number of digits be n.</li>
<li>Create extended version of all numbers. In extended version, we have n+1 digit formed by concatenating the number of with itself and <a href="https://www.wikitechy.com/tutorials/sql/truncate-table" target="_blank" rel="noopener">truncating</a> extra digits.</li>
<li><a href="https://www.wikitechy.com/tutorials/golang/sorting-in-golang" target="_blank" rel="noopener">Sorting</a> the value from original numbers according to their extended values.</li>
<li><a href="https://www.wikitechy.com/tutorials/sql/concat-sql" target="_blank" rel="noopener">Concatenating</a> to the sorted numbers produce the required result.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code-in-c" class="color-blue" style="text-align: justify;">Sample Code in C++</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">/ Given an array of numbers, program to arrange the numbers to form the <br/>// largest number <br/>#include <iostream> <br/>#include <string> <br/>#include <vector> <br/>#include <algorithm> <br/>using namespace std; <br/>  <br/>// A comparison function which is used by sort() in printLargest() <br/>int myCompare(string X, string Y) <br/>{ <br/>    // first append Y at the end of X <br/>    string XY = X.append(Y); <br/>  <br/>    // then append X at the end of Y <br/>    string YX = Y.append(X); <br/>  <br/>    // Now see which of the two formed numbers is greater <br/>    return XY.compare(YX) > 0 ? 1: 0; <br/>} <br/>  <br/>// The main function that prints the arrangement with the largest value. <br/>// The function accepts a vector of strings <br/>void printLargest(vector<string> arr) <br/>{ <br/>    sort(arr.begin(), arr.end(), myCompare); <br/>  <br/>    for (int i=0; i < arr.size() ; i++ ) <br/>        cout << arr[i]; <br/>} <br/>  <br/>// driver program to test above functions <br/>int main() <br/>{ <br/>    vector<string> arr; <br/>  <br/>    //output should be 5545727825 <br/>	arr.push_back(&quot;25&quot;); <br/>	arr.push_back(&quot;457&quot;); <br/>	arr.push_back(&quot;278&quot;); <br/>	arr.push_back(&quot;55&quot;); <br/>	printLargest(arr); <br/>  <br/>  <br/>   return 0; <br/>} </code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">5545727825</span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/find-largest-number-from-set-of-given-numbers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
