|
How do I find the above without removing the largest element and searching again? Is there a more efficient way to do this? It does not matter if the these elements are duplicates.
Started by Jacob on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
If the list is already sorted, then just look that both have the same largest value should be found, you have to consider what happens should three or more elements all have this ....
Mean to find the two largest unique values in the list.
|
|
What is the largest open source project written in Visual C++ ?
I can see that eMule project is pretty big, but what is largest?
Started by Dmitriy Matveev on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I think some of the largest pieces of software that you will find are some of the open Source Game.
|
|
I have a std::set, what's the proper way to find the largest int in this set ?
Started by leeeroy on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
What comparator are you using?
For the default.
To the largest element in the range [start,end).
|
Ask your Facebook Friends
|
How could one find the 10 largest files in a directory structure?
Started by Ralph Shillington on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
On linux:
ls -XS | head -n 10.
Clause will only allow the first 10 through so it will be the largest 10.
|
|
What's a fast algorithm for finding the length of largest monotonically increasing sequence in an array of integers.
Started by SuperString on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Search for the largest positive j ≤ L such that X[M[j]] < X[i] (or set j = 0 if no such value exists.
|
|
Hello,
What is largest free datababase for SQL Server engine available for testing purposes?
Thanks
Started by GrZeCh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't know about "largest" database, but if you're just looking for sample data, I would consider.
|
|
I am looking for a tool to tell me which files and folders are the largest as I need to do some cleanup.
Started by oo on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at superuser):
It's an awesome app that shows you the sizes of all the files/folders... .
Check out Treesize.
There's a portable version at PortableApps.com if you don't want to install it .
WinDirStat - displays a graphical view and list of files and directories, by size .
|
|
I have a small array of ints. I want to reorder the array from largest to smallest. Is there a method to do this?
Started by Phenom on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can do it using Array Sort & Reverse :
Array.Sort(array); Array.Reverse(array);
Example:
[Test] public void Test() { var array = new[] { 1, 3, 2 }; Array.Sort(array); Array.Reverse(array); CollectionAssert.AreEquivalent(new[] { 3, 2, 1 }, array); ... .
|
|
In a fit of idle curiosity, I was wondering that the largest program ever written was. What did it do? What language was it written in? How successful was it? How buggy was it? How many man years did it take to create?
I realise that 'largest' and 'program...
Started by Andy Brice on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Of code, and is possibly the largest piece of commercial software ever, by that metric (I think Hat Linux 7.1 30m Windows XP 40m Visual Studio 40m MS Office 30m
Source: "World's Largest Software the largest program allegedly contained....
|
|
For instance:
template <typename Type1, typename Type2> void fun(const Type1 &v1, const Type2 &v2) { largest<Type1, Type2>::type val = v1 + v2; . . . };
I'd like to know if there's a "largest" somewhere, perhaps in boost.
Answer Snippets (Read the full thread at stackoverflow):
If the largest type on your machine is a long and the two types passed.
Typename T1, typename T2> struct largest { typedef typename is_cond< (sizeof(T1)>sizeof(T2));
There is no simple answer.
|