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 |
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Event Handling in C# Triggering a Button
working with arrays
Write a program to count the number of characters, number of words, number of line in file.
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
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.
Give the code for Handling Mouse Events?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
program for addition of fraction(M/N + P/Q = Y/Z)
how to change password in .net with c # with ado.net and also SQL server 2008 change password
How to Link Different Data Sources Together?
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long