« first day (3675 days earlier)      last day (1159 days later) » 

12:38 AM
@RedwolfPrograms is your site intentionally not working? (as in, has the domain/server broken/have you taken in down on purpose)
 
It's down at the moment, I had to shut down the server for now
 
Cool cool.
Just curious
Wondering if it was a problem on my end
 
 
2 hours later…
2:38 AM
0
Q: Find Minimum Number of Buckets to be Able to Catch Water Falling from Houses

DemetriOSGiven a String consisting of only the characters 'H' and '-', Where 'H' represents houses with rain water dripping from it and '-' represents open spots to put a bucket to catch water. Return minimum number of buckets so that all houses have at least one bucket right next to it. Houses may share ...

 
 
5 hours later…
7:36 AM
Evening y'all
 
usr
7:55 AM
@Lyxal Everything, Lyxal!
 
@usr everything to you too!
 
1
Q: Spot the different

John ZhauIntroduction This challenge was originally the "Among Us" challenge in the "Misc" category of YASCON CTF 2020. (The link includes an answer to that challenge. Click at your own risk.) You're given a lot of files, 1 of which is different from every other files. Your job is to find that 1 different...

 
8:36 AM
Since BF memory layout optimizer turns out to be NP-complete, I'll see if running some simple slightly-optimized on the data I scraped is slow enough to make it an approximation challenge.
 
0
A: Sandbox for Proposed Challenges

A usernameBytewise look-and-say sequence code-golf restricted-complexity Given this javascript code (Node.js), which outputs the look-and-say sequence indefinitely (assuming it doesn't crash): function nextTerm(x){ return x.replace(/(.)\1*/g,z=>z.length+z[0]) } function printUpTo(x){ var str = '1'; f...

 
8:57 AM
@NewMainPosts i was in electrical...i swear
red is looking kinda sus tho
 
9:32 AM
amogus
 
10:02 AM
0
A: Sandbox for Proposed Challenges

Wheat WizardSelf improving program quine code-golf restricted-complexity In this challenge you will write a program or function which when run will output a faster solution to this challenge. Formally speaking: you will write a program or function, \$T_0\$, which takes an integer \$x\$ as input and outputs a...

 
10:27 AM
0
A: Sandbox for Proposed Challenges

A usernameUn-look-and-say code-golf Take a term of the look-and-say sequence sequence as string input and output all the previous terms, all the way back to 1. Your program only needs to deal with instances of the standard sequence. Standard loopholes apply. Test cases: 111221: [1211,21,11,1] 111321131221:...

 
10:52 AM
0
A: Sandbox for Proposed Challenges

A usernameEvery single error code-golf For at least 3 types of error in a language of your choice, write a program that throws that error. Your chosen language must have at least 3 different types of errors (E.g for javascript TypeError, ReferenceError, URIError). But when all your programs are concatenate...

 
11:19 AM
Thank you all for the award, and Bubbler for the generosity!
 
 
6 hours later…
5:00 PM
0
Q: Write a linux "figlet" program implementation

WasifFrom Wikipedia FIGlet is a computer program that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters (see ASCII art). The name derives from "Frank, Ian and Glenn's letters".[4] Being free software, FIGlet is commonly inclu...

 
5:31 PM
Idea for the asymptotic error challenge n=1;exec(s:="import sys;[0]*int(int(input())**(1+1/n));print(f'n={n+1};exec(s:={s!r})')")
 
6:04 PM
0
A: Sandbox for Proposed Challenges

WasifGoogle search Challenge is very simple, you have to get a string as input and then launch the default web browser, and search for that string in Google. You have to replace spaces with + and plus signs with %20 . Google search URL is google.com/search?q=query+string Standard loopholes apply, Inte...

0
A: Sandbox for Proposed Challenges

WasifEnumerate all possible IPv4 addresses Title might make the challenge hard, but it's easy. You have to print all the possible IPv4 addresses from 0.0.0.0 to 255.255.255.255 Standard loopholes apply, no internet usage for this Tags: code-golf,kolmogorov-complexity,string

0
A: Sandbox for Proposed Challenges

WasifPrint your PPCG avatar This is a graphical output question. You have to connect to the codegolf.stackexchange.com in your homepage, scrape and download your avatar and show it in your default image viewer or some other way. Standard loopholes apply, connections only allowed to codegolf.stackexcha...

 
 
2 hours later…
7:41 PM
@RedwolfPrograms How do you adapt the Random Question script to avoid closed questions? I'm using S-1.3, but it'd be helpful to know generically
 
If you click edit, on line 18 there should be a filterClosed property you can set to true
If it's not there, that might be new in 1.4
 
Wait, there's a 1.4?
@RedwolfPrograms Nope, line 18's empty
 
@RedwolfPrograms Very nice, thanks!
 
I'll probably put all my userscripts into a repository at some point
 
 
3 hours later…
10:26 PM
Morning everyuser
 
There is only one user
 
array = []; array[0] = array; is now my favorite statement in most programming languages
 
How does that work?
 
At least in JS, arrays are stored as pointers so you can put the pointer to the array in the array and it acts like the array is nested infinitely within itself
 
But isn't the array empty?
How can you set array[0] when you haven't done array.push yet?
 
10:29 PM
JS's arrays are weird
They're basically just dictionaries with numbers as keys
 
Does it also work if I do array[1]?
 
@RedwolfPrograms Oh ok
Interestingly,
```
array = []
array[1] = array
console.log(array[1]);
```
gives `[ <1 empty item>, [Circular] ]`
 
Is that Firefox?
 
TIO (Node.js)
Chrome, gives [undefined, empty × 2, Array(4)]
The Array(4) makes more sense to me here
 
10:34 PM
@RedwolfPrograms doesn't work in python
Because you don't have anything in the list to index
So it seems that's just a JavaScript thing
 
The specific syntax depends on the language
 
Python seems a lot saner than JS when it comes to some things
 
Maybe list.append(list)
 
@RedwolfPrograms Try it online!
 
Yeah JS handles arrays really weirdly
 
10:36 PM
Oh wow
It actually outputs [...]
 
Just tried it
hehe python do the circle
 
@RedwolfPrograms Try it online!
 
Java's ArrayList gives [(this Collection)]
 
I imagine this could really mess with naive stringifying stuff
Or really anything that involves going through nested lists
 
And that kids is why we use golfing languages for production
They don't have silly list appending stuff
 
10:40 PM
I just realized Ash does...I wonder if this is actually possible to exploit
It could definitely cause the interpreter to hang if you tried to do anything involving multidimensional arrays
 
Probably can't do it with vyxal. Most lists are dereferenced if you try to do anything with them
Because using memory pointers is impractical when you can duplicate the same list on the top
 
You can use this to make a maze
Make a bunch of arrays, have one of them contain an actual value, then the rest just have multiple other arrays in them
So you would need to keep track of which arrays you'd already been in to find the path that doesn't recurse back on itself
 
How's the snow/ice this afternoon?
 
Nice, the city finally got water working.
Snow and ice are gone except in the shade
 
10:49 PM
Wow I'm big brain: I saw the link to a site I have, and thought "hmm I wonder if anything is new" only to realise that of course nothing is new I haven't added anything in the last 14 hours
 
11:28 PM
Taking the nth cartesian power of a k-length list is O(k^n), what's the complexity of taking all ith cartesian powers of a k-length list for i = 1, 2, 3, ..., n?
I think it's O(k^{n^2}) as: O(k * k^2 * k^3 * ... k^n) = O(k^{1+2+3+...+n}) = O(k^{(n^2+n)/2}) = O(k^{n^2})
 

« first day (3675 days earlier)      last day (1159 days later) »