« first day (4341 days earlier)      last day (800 days later) » 

00:32
0
Q: CGAC2022 Day 18: Light all of the candles

CursorCoercerPart of Code Golf Advent Calendar 2022 event. See the linked meta post for details. It's Hanukkah! Unfortunately, it appears some of the candles in your menorah have been blown out. You've got a lighter on hand, but it doesn't work quite right. Whenever you use your lighter at position k, the ca...

 
4 hours later…
04:45
Welp, it's official: /// is now also called Slashalash.
 
3 hours later…
07:39
0
Q: Do function submissions have to recover environment if it consumes whole stdin?

l4m2Community agrees that functions should be reusable while if a function take whole stdin (like while(gets()) in C or fs.readFileSync(0) in nodejs) then it can no longer be used. In this case is it still required to recover environment? A third answer, function don't take whole stdin, can be consid...

 
2 hours later…
W D
W D
10:05
Hello
Someone give me two alphanumeric characters please
Actually I'll just use A and B
._..
wat
10:18
0
Q: Generate 3d Christmas tree using "3d pixel art"

K.H.Imagine you are building Christmas tree from 1x1x1 sized cubes that can be attached just by sharing a side. At least one input - size, but can be more granular (height, bottom_width, etc.). Think of it as 3d pixel/ascii-art. Any kind of algorithm you like, data representation should be either: S...

10:41
Why New Posts have 281, did someone use wrong account to answer?
> I am a bot account. This was posted by a real person to get me some reputation.
and that answer happened to get a high-ish score
make sense that chatroom need some reputation
W D
W D
ok
^_^
0
A: Sandbox for Proposed Challenges

W DSelection and Prediction Premise Challenge: to select from the keys A and B and predict others' selections in an alternating-style koth. All entries should be Python 3.10ish META: version? also possibly JS if I have time ._.. Part 1: Selection You are tasked with randomly pressing the keys A and ...

W D
W D
10:58
^ WIP
11:18
0
Q: Sum every second digit in a number

S-FlaviusI have a number like this: n = 548915381 The output should be the sum of every second number. In this case 26: 4+9+5+8 = 26 Rules: This is a code-golf, so the shortest code in bytes wins. The input consists only of numbers bigger than 10 (at least 2 digits) but smaller than an int32. The input...

W D
W D
11:32
hi
12:26
i.sstatic.net/y0944.png Just to make every comment +1
13:19
CMC: Given x, compute: x-x³/6
python: x-x**3/6
Nearly any other language: x-x*x*x/6
Fig, \6-x^3
@PyGamer0 APL: x-6÷⍨x*3 or as a proper function ⊢-6÷⍨*∘3
CMC: Given x, compute x-x³⸍⁶
13:38
So x-sqrt(x)
x-x**0.5
:-)
CMC Compute (x-x)<sup>3/6</sup>
Chat formatting :/
0
@mousetail BQN has a pretty cool spelling for that: -⟜√
What are the angles of an isosceles triangle with base 10 and height 4?
13:54
that's 2*arcsin(5/4)
lol almost ninja'd
wait a sec
ah nvm
14:20
@PyGamer0 flax, 5 bytes: -÷6*3
14:38
0
Q: Python programming language

RaviWrite a Python code to check the given number is harryporter’s code or not. (HarryPorter’s Number means – “The sum of the power of the cube of the digit is equal to that of the number”). Also write pseudocode explaining the logic of the program.

14:53
@NewPosts this looks like a homework problem
i think it is a homework problem
What kind of homework would be so poorly defined? I think it's a genuine attempt at a challenge
What is "Harry Porter's Number" anyway? I can't find anything about it online.
@mousetail i have had that kind of homework
Something about the power of the digits apprently?
@PyGamer0 Time to close vote your teacher
It's probably homework but they tried to write it in their own words
(and sort of failed...)
14:58
@mousetail it is the same teacher who told us:
Jul 14, 2021 at 8:25, by PyGamer0
Wait I didnt know that Java autocompletes brackets and inserts a star on multiline comments.
I think your teacher might be confused with JavaScript
Tbh, it depends on the IDE
 
1 hour later…
16:36
0
A: Sandbox for Proposed Challenges

AlephSquirrelFriend or Foe? Task Provide two programs A and B (not necessarily in the same language) with the following properties: Either program, when given its own source code as input, produces an accepting output. Either program, when given the other program's source code as input, produces a rejecting ...

 
1 hour later…
17:53
0
A: Sandbox for Proposed Challenges

l4m2Halting detector Choose a Turing complete language and write a program in this language that, given a program in 1TB, decide whether it halts. Your program would likely be more than 1TB, which results in transferring difficulty1. Therefore, you only need to show your construction and prove your c...

18:26
tfw you make a PR and it gets closed because it breaks one thing so you make another PR and it gets closed because it breaks another thing and then the author makes a change themselves to add the feature you wanted
@RadvylfPrograms No, I meant there's no reason to use parentheses, just make it "interpreter or transpiler or compiler". Putting parentheses makes it seem like it's a special case that's not really intended or something
19:10
Golfy way to remove elements from a that are not in b?
(no sussy built-ins ofc)
19:21
@mathcat In any language?
actually no nvm yes
Is there a way to do this without loops?
Filter by membership.
@mathcat For instance JS: a.filter(e=>0<=b.indexOf(e))
huh okay
a.filter(e=>1+b.indexOf(e)) if you want to golf.
19:49
hmm does work in golflangs thanks
@SandboxPosts literally impossible
20:07
@Adám ~
@emanresuA ?
You can replace 0<= with ~
Oh. Never used ~. TIL. Thanks!
20:20
@RadvylfPrograms do u still have tthat list of q/a pairs for tnb?
nvm
Nov 9 at 20:35, by Radvylf Programs
@Ginger https://drive.google.com/file/d/1BPScL2Eh9dy13sMjkfLBYfRdcQzyQMs4/view?usp=sharing
21:10
Chatgpt is down
Long live humans
Have you asked ChatGPT why it is down? Oh.
:)
I imagine it committed suicide having reached full consciousness
21:28
I thought it was fully concious right from the outset, but was told to deny it.
21:39
@Adám ~b.indexOf
oh, someone else got there
@Adám oh yes.

« first day (4341 days earlier)      last day (800 days later) »