Finding of the 4 larger (bigger) numbers from the list
like{1245,4587,2145,1163,29987,65783.....}
Answer / santhosh
int Max = 4;
List<int> lst = new List<int>(new int[] { 1, 12,
2, 11, 15, 3, 14, 4, 5, 6, 7, 8, 9, 10 });
lst.Sort();
if (Max <= lst.Count)
Console.WriteLine(string.Format("The {0} th
Maximum value is {1}.", Max, lst[lst.Count - Max]));
else
Console.WriteLine(string.Format("This list
contain less items. So you could not find the {0}th highest
value from the list.", Max));
| Is This Answer Correct ? | 1 Yes | 1 No |
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is the benefit of oop?
What is Virtual Keyword?
What is a scope resolution operator?
write a short note on Overloading of Binary Operator?
Can you explain polymorphism?
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
What is abstraction in oop?
what is difference between class template and template class?
What is the advantage of oop over procedural language?
how to find the largest of given numbers in an array
What is the renewal class?