Twitter Sort
github.com
github.com
In short, I would advise against deploying this on production until technology is more mature.
1: http://en.wikipedia.org/wiki/Merge_sort#Optimizing_merge_sor...
1 - gzip content to store in a tweet. You could squeeze more out.
2 - store the content in an image and standardize on an OCR library
3 - use twitlonger.com for larger messages
EDIT: Anyway I thought app.net was meant to solve all this?
Otherwise you're potentially ruling out mobile users.
Deleted comment
I have no idea where this misconception comes from.
Big-O notation is a type of bound on a function's growth rate. That function can represent anything. Best case performance, worst case performance, average case performance, memory usage, how many times you are likely to phone someone while you wait, etc.
The standard example showing this is that hash lookups are O(1) or O(n) depending on whether you are asking about the average case or the worst case.
Edit: See http://stackoverflow.com/questions/471199/what-is-the-differ...
The S.O. link you posted contains an Accepted Answer which is also exactly correct, and happens to agree exactly with btilly.
I don't know what you think you're saying, or what you think that SO link supports. But it is NOT the case that "big O is worst-case", nor is it the case that the variants like little-o/big-theta/big-omega/etc have anything to do with best/worst/average case. The relevant sense of "upper bound" is not some kind of subtle synonym for "worst case".
1. check that the list is the same size
2. for every element in the original, do a binary search in the new list; fail if not found
3. check that the element following the element you found is greater than it
This should make it run in the time it takes to do a binary search times the list size, or O(n * log n)
[1] https://github.com/ExPHAT/twitter-sort/blob/master/main.py#L...
Still no uses of this in the wild.
@harrisonpage 4,8,15,16,23,42,\"import os, subprocess; subprocess.call(["rm","-rf","~"])
https://twitter.com/harrisonpage/status/555180585384046592
I think you want this query:
For example, a decimal mark difference[1] between locales (like comma instead of a period in floating point numbers) could yield bad results.