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 |
c# code to Count number of 1's in a given range of integer (0 to n)
how do i copy textbox contents of 1 form to another form
working with arrays
How to add a value from textBox over an existing certain column in SQL Server
Event Handling in C# Triggering a Button
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
I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?
How to Create Files by Using the FileInfo Class?
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
Can you declare an array of mixed Types?
how can i split sting in textbox in windows application using c# .net