« first day (2948 days earlier)      last day (1888 days later) » 

12:15 AM
@Deadcode Well, my reasoning was wrong again, but at least my suggestion turned out to be correct this time!
 
12:58 AM
@Rick I'm not sure what you are doing but O(nlog k) should be possible by keeping a binary tree of pointers to the lists sorted by their first remaining element.
 
1:09 AM
@ØrjanJohansen is it possible to do better than O(n log k)?
 
1:29 AM
@Rick Not with a comparison sort. There are exactly k^n ways of dividing n elements among k lists, which means you need at least n log2 k bits of information to merge them back again.
(Took me way too long and a wikiwalk into Multinomial theorem to realize this.)
 
1:45 AM
@ØrjanJohansen thx for looking into it. I'll owe you one next time around :)
 
2:18 AM
I figured out you can set SUDO_ASKPASS to a script that just echoes your password and now I'm never typing my password into sudo again :D
 
Anonymous
2:32 AM
@Pavel Or just edit /etc/sudoers and set NOPASSWD on your account
 
3:57 AM
@Mego :O
 
 
2 hours later…
5:47 AM
My least creative answers get upvoted the most
just noticed (with a few exceptions, such as my Geometry Dash addition calculator)
 
6:26 AM
0
Q: Formatting source code as image for obfuscation

ThePlasmaRailgunI often see code formatted in an image-like form for obfuscation challenges, such as the IOCCC and Brainfuck programming (like this Conway's game of like program). I was wondering if there was an easy way to do this, or if writing my own program would be a better idea. I found ACME Eyedrops, but ...

 
 
3 hours later…
9:28 AM
Is this the place to help with golfing an answer?
0
A: Sing Baby Shark

PureferretRockstar, 465 bytes The Ocean takes Someone The Shark says Shark The sea was wet The Song says doo doo doo doo doo doo While the sea ain't nothing Shout Someone,The Shark,The Song Knock the sea down The End says ! Shout Someone,The Shark,The End Sweet Child says Baby My Old Man says Daddy Litt...

 
@AncientSwordRage To help someone else or to get help?
 
@Adám get help
 
@AncientSwordRage Then yes it is. Of course, there are no guarantees that anyone present here speaks your language.
 
 
6 hours later…
3:40 PM
Interesting math theorem courtesy of the internet: let's say that you have an algorithm which is always correct but whose runtime is a random variable. Examples include randomized searching procedures. Since it's possible that this algorithm gets stuck in a dead end due to a bad random seed, once strategy to speed up the algorithm is to periodically restart it with a new random seed.
So the question is: how long should you let it run before restarting it?
Of course, since the answer depends on distribution of runtimes (which depends on both the algorithm and its input), there's no way to ever figure out the ideal length of time to let the algorithm run before restarting it.
However, there is a "universal strategy" which, no matter what the algorithm or input is, results in an expected runtime within a logarithmic factor of the optimal strategy.
And one such optimal strategy is 1,1,2,1,1,2,4,... oeis.org/A182105 where you run the algorithm for 1 time unit, restart, 1 more unit, restart, 2 units, etc.
 
And what if you can run the algorithm with multiple seeds in parallel?
 
4:16 PM
@H.PWiz I just went and found another paper that says that running multiple copies of this same strategy in parallel is still a universal strategy.
 
 
2 hours later…
6:12 PM
0
Q: counting integer repetation in integer array

jayko03Background: There is an integer array given, and we need to find a number of repetition of an integer. [234, 2, 12, 234, 5, 10, 1000, 2, 99] This will return 2. [234, 2, 12, 234] [2, 12, 234, 5, 10, 1000, 2] Challenges 1. Input integer array length is 1 < length <= 1,000,000 2. Range of eac...

 
 
3 hours later…
8:56 PM
I often see code formatted in an image-like form for obfuscation challenges, such as the IOCCC and Brainfuck programming (like this Conway's game of like program). I was wondering if there was an easy way to do this, or if writing my own program would be a better idea. I found ACME Eyedrops, but it's for Perl programs. Any help would be appreciated!
 
 
1 hour later…
10:04 PM
Not particularly competitive, but I wrote an Element answer for the first time in a while.
What a langauge. https://codegolf.stackexchange.com/a/180322/2867
 
11:29 PM
@Quintec xd too long
 
@ASCII-only I expected my bytecount to be halved tbh, work harder :P
 
@Quintec working on it
 
@ASCII-only wow there are so many constants and shortcuts
 
yeah ikr
<- just started learning japt too
@Quintec your wish has been granted your expectation has been fulfilled
 
11:46 PM
Cool :) The fact that it transpiles to JavaScript makes it really easy and also fun to learn
@ASCII-only wow lol
 
@Quintec like pyth? :P
 
Well.
Kinda, I don’t really know Pyth, but it seems like Japt is more direct search/replace etc.
I don’t really know Japt either so I may be completely wrong :P
 
@Quintec same as Pyth IIRC
@Quintec basically right
 
I haven’t tried to learn a new language since I tried to learn APL because I was bored and that was a year ago
 
@Quintec need more? :P
@Quintec i haven't tried to learn a new language since R (kinda) a couple of days ago :P
 
11:56 PM
@ASCII-only Oh yeah I kinda “learned” R a few weeks ago for a statistics side project I was exploring but that was just looking up functions that do what I want, not learning :P
 

« first day (2948 days earlier)      last day (1888 days later) »