Write a program. there are 1..n numbers placed in an
array in random fashion with one integer missing. find the
missing number.
Answer / jayakrishnan
Array.Sort(a);
var b= a.Where((o,index)=>o!=index+1);
Console.WriteLine(b.First()-1);
| Is This Answer Correct ? | 5 Yes | 3 No |
IS Array list is generic or non generic
Coding for using Nullable Types in C#?
how to get the table names via c sharp and column names also?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
Code for Searching for Multiple Matches with the MatchCollection Class?
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Can you declare an array of mixed Types?
how can i split sting in textbox in windows application using c# .net
program for straight line(y=mx+c)
Write a program to convert postfix expression to infix expression.
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