user
A quiet enigma. We don't know anything about user yet.
Posts
See all 68 »Task I often need to find the factorial of a number or the sum of all numbers up to a number when cheating on math tests. To help me with this, your task is to write $F$, a generalized version of ...
posted 4y ago by user · edited 2y ago by trichoplax
Idea shamelessly stolen from caird and rak1507 Shuffle a subset of a list of unique, positive integers with uniform randomness, given the indices of that subset. For example, given the list $[A, B...
4 answers · posted 4y ago by user · edited 4y ago by General Sebast1an
Instead of the code-golf-tips tag, could we tag "Tips for golfing" questions with tips and code-golf instead? They can still be searched for, so I don't see a reason to make a special tag to repres...
1 answer · posted 4y ago by user · edited 4y ago by General Sebast1an
Scala, 55 bytes (Stream from 1 map 1.0./scanLeft.0)(_+_)indexWhere _.<= Try it online! Written in a more sane manner: n => Stream.from(1).map(1.0/_).scanLeft(0.0)(_+_).indexWhere(_ &g...
posted 5y ago by user
APL (ngn/apl), 6 bytes {∇¨⍳⍵} Try it online! Dyalog APL and dzaima/APL appear to not give empty vectors for ⍳0, so I used ngn/APL. I don't know how to turn on boxing there, though, so there'...
posted 4y ago by user
Scala -language:postfixOps, 2 bytes 1& Try it online! 1 for odd, 0 for even. Scala, 3 bytes _%2 Try it online! 1 for odd, 0 for even.
posted 4y ago by user
Answering with languages newer than the challenge should absolutely be allowed Most of the time, when a language is newer than a challenge, it's just a coincidence. By not allowing people to answe...
posted 4y ago by user
| Reputation | 1591 | |
| Number of top-level posts | 9 | |
| Number of answers | 59 | |
| Sum of received votes (up minus down) | 179 | |
| Number of edits made | 89 | |
Earned Abilities
Statistics
| Posts | ||
|---|---|---|
| Count | 68 | |
| Questions | 4 | |
| Answers | 59 | |
| Articles | 5 | |
| Votes cast | ||
|---|---|---|
| Count | 321 | |
| Flags raised | ||
|---|---|---|
| Count | 0 | |
