Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 84237

In mathematics and computer science, an algorithm is an effective method expressed as a finite list of well-defined instructions for calculating a function. Algorithms are used for calculation, data processing, and automated reasoning.

5
votes
If you're stuck with your list data structure If you strive purely to minimize number of priority updates, there's not too much you can do beyond the binary-search approach. Otherwise, one possible …
answered Oct 8 '13 by Dukeling
7
votes
Insert all elements of a into a (self-balancing) Binary Search Tree (BST) - O(n log n) For each element of w, lookup and remove the closest element in the BST and add it to the output - O(n log n) F …
answered Aug 13 '13 by Dukeling
7
votes
Some points: The top positions tend to be C++ / C / Java, regardless of how many lines of code the difference is between that and some other language. This may be more about that the top coders tend …
answered Apr 25 '13 by Dukeling