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                      
Google
   
 
Categories >> Code Snippets >> Programming Code >> Dot Net Code >> C Sharp Code
 
 


 

 
 ASP.NET Code interview questions  ASP.NET Code Interview Questions (46)
 VB.NET Code interview questions  VB.NET Code Interview Questions (9)
 C Sharp Code interview questions  C Sharp Code Interview Questions (50)
 ADO.NET Code interview questions  ADO.NET Code Interview Questions (8)
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 :: C-Sharp-Code
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Array.Sort(a);
var b= a.Where((o,index)=>o!=index+1);
Console.WriteLine(b.First()-1);
 
Is This Answer Correct ?    4 Yes 2 No
Jayakrishnan
 

 
 
 
Other C Sharp Code Interview Questions
 
  Question Asked @ Answers
 
how to get the table names via c sharp and column names also? Sify 2
How to Create a Treeview Menu in ASP.NET with C#?   1
How to pass multiple rows from one gridview to another gridview after clicking the checkbox. Satyam 1
IS Array list is generic or non generic   1
how to change password in .net with c # with ado.net and also SQL server 2008 change password   1
program to check if a number is "perfect number". Mind-Tree 1
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?   1
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number. Mind-Tree 1
"c sharp" code for factorial using static variables   9
program for string reverse(eg:- i am boy -> boy am i) Mind-Tree 8
Can you declare an array of mixed Types? HCL 1
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)   1
 
For more C Sharp Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com