Jelly Hypertraining

Practice your Jelly :) Rules and stuff are here: golfingsucces...
Mar 20, 2020 07:16
@RGS yes, was replying to the question about the slice quick. I’ve been using Jelly for about a year. Learnt a lot from @JonathanAllan and others.
Mar 19, 2020 23:56
@RGS because not all links automatically vectorise.
Mar 19, 2020 23:54
The relevant link is applied to the whole list, and then the slice quick only replaces the selected members of the source array with their corresponding values in the result.
Mar 19, 2020 23:53
Yes. The ’1¦ uses the slice quick to apply a monad just to one of the elements in a list. It’s worth having a look at the Python code for it, because it took me a little while to get my head around it.
Mar 19, 2020 23:49
ḤRBFœṣØ.Ẉ+2’1¦ḣ

[Try it online!](https://tio.run/##ASgA1/9qZWxsef//4bikUkJGxZPhuaPDmC7huogrMuKAmTHCpuG4o////zEw)
Mar 19, 2020 23:47
and the µ is redundant, and is the same as L€
Mar 19, 2020 23:46
You can also replace 0,1 with Ø.
Mar 19, 2020 23:45
Sorry that should have been ‘1¦
Mar 19, 2020 23:45
You could just do ‘-1¦
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Jan 15, 2020 19:57
@Adám I was planning to get the highest valid n possible with a 10 minute run time on Linux. This would restrict it to languages with a freely available implementation. The expectation would be that the answerer gives an indication of n on their own machine and then I would verify it. Does that seem reasonable? I’m also still happy to stick to Code Golf, and note that they tend to attract more answers.
Jan 15, 2020 18:59
Would it be possible please to have some more feedback on my Sandbox post codegolf.meta.stackexchange.com/a/18414/42248 prior to posting to live? In particular, should I make it code golf or fastest code? The challenge involves counting the number of different buildings that can be made from n identical cubes without overhangs, and I think represents a new integer sequence.
Nov 27, 2019 00:22
I’ve made my first Sandbox post. codegolf.meta.stackexchange.com/a/18310/42248 Any comments? It’s derived from another question, but that one was designed to get tips to shorten a C function.
 
Aug 29, 2019 16:03
@pasbi got it down to 1 byte extra in the end. I’ll post an explanation later.
Aug 29, 2019 16:03
The first example is trivial since it will always be zero. Do we have to handle the degenerate case of one bowl? It will add unnecessary complexity to my solution to give an obvious answer.