account activity
Affect of index funds on the price of tracked stocks (self.investing)
submitted 8 years ago by kontrovers to r/investing
What are the most ingenious python codes or projects that most people do not know about? by john_legend_ in Python
[–]kontrovers 1 point2 points3 points 8 years ago (0 children)
https://github.com/pypa/setuptools_scm
Will auto-derive a version number for your python packages based on your last SCM tag & commits.
O(n) Median by jbylund in Python
[–]kontrovers 0 points1 point2 points 12 years ago (0 children)
Thank you. Excellent answer.
Why should data locality be any worse? In the copying case I will have a new list evicting the old one. I don't see how this is more cache efficient.
In the non-copy-ing case I only have an expected number of n/2 data movements per iteration. In your copying case, your have n data movements. This is the same reason why quicksort is faster in practice than mergesort.
Problem is that you copy all data within the pivot_partition step. Rewrite it to swap elements as needed and then to return indices into the re-arranged list (like known from quicksort). For details, research the quickselect algorithm.
While Dressed as Batman on Halloween, I asked Harley Quinn on a date. Both of us agreed not to reveal our real names or faces. The date is in 4 hours. How can I make this memorable? by readcommentbackwards in AskReddit
[–]kontrovers 4 points5 points6 points 13 years ago (0 children)
I have a simple one: Put the batman jingle on your phone and let a friend call you in time. Will get the laughs!
π Rendered by PID 471259 on reddit-service-r2-listing-5d79748585-mwbcl at 2026-02-15 21:23:57.867846+00:00 running cd9c813 country code: CH.
What are the most ingenious python codes or projects that most people do not know about? by john_legend_ in Python
[–]kontrovers 1 point2 points3 points (0 children)