ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
   
 
Categories  >>  Code Snippets  >>  Programming Code  >>  Dot Net Code  >>  C Sharp Code
 
 


 

 
 ASP.NET Code interview questions  ASP.NET Code Interview Questions
 VB.NET Code interview questions  VB.NET Code Interview Questions
 C Sharp Code interview questions  C Sharp Code Interview Questions
 ADO.NET Code interview questions  ADO.NET Code Interview Questions
Question
Write a program. there are 1..n numbers placed in an 
array in random fashion with one integer missing. find the 
missing number.
 Question Submitted By :: Lakshmipriya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
Answer
# 1
Array.Sort(a);
var b= a.Where((o,index)=>o!=index+1);
Console.WriteLine(b.First()-1);
 
Is This Answer Correct ?    1 Yes 2 No
Jayakrishnan
 

 
 
 
Other C Sharp Code Interview Questions
 
  Question Asked @ Answers
 
How to Create Files by Using the FileInfo Class?  1
How to pass multiple rows from one gridview to another gridview after clicking the checkbox. Satyam1
how to get the table names via c sharp and column names also? Sify2
. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $  2
Code for Working with Files under a Directory?  1
program to reverse the order of digits in a given number of any length. Mind-Tree1
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string Mind-Tree2
how do i copy textbox contents of 1 form to another form Wipro4
Write a program to count the number of characters, number of words, number of line in file. Mind-Tree2
how can i split sting in textbox in windows application using c# .net  2
program to check if a number is "perfect number". Mind-Tree1
Event Handling in C# Triggering a Button  1
 
For more C Sharp Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com