« first day (3945 days earlier)      last day (904 days later) » 

11:01 AM
> CMC: There are two fish in the aquarium, a shark and an eel. Given their size S@ != S# after eating food more of one fish than another it begins to increase its size vuahdhs while other shrinks down towards zero(0).
thank you AI
very cool
 
11:28 AM
0
Q: Ways to add 1 to lists of lists

Grain GhostAdapted from this StackOverflow question In this challenge you will take a list of lists of integers, e.g. A = [[1,2],[3,4],[5],[]] And an additional single integer (e.g. n = 7). If you were to add n to the front of one of the lists in A there would be as many ways to do that as there are lists...

 
@cairdcoinheringaahing Thanks for fixing my sandbox post
 
@Fmbalbuena No worries, happy to do so :)
 
ok i reached 3 days of sandbox post. and no comments i think i'm done.
 
Link?
 
@GrainGhost What?
 
11:33 AM
Link to the post?
 
I do agree with Adam, that I think the explanation strings should be inputs, but that's up to you. The challenge itself looks ready to post imo
 
@cairdcoinheringaahing but all explanations except NOP is exactly same from esolangs.org
 
@Fmbalbuena By requiring a set of fixed strings, a lot of answers are going to spend a lot of "trivial" bytes on those strings, and a lot of the competition will come down to which language has the best string compressor. That's fine, but some people don't like it
 
@cairdcoinheringaahing Hmmm... go to changing my sandbox post.
 
11:38 AM
Having them be inputs means that the bytes spent on getting the strings are much fewer. It's entirely up to you which you do however. This is more "Personally, I think the challenge would be more interesting if X", rather than "You need to do Y to make the challenge clear"
Either way works, some people just prefer one over the other
 
@cairdcoinheringaahing go to fixing
 
0
Q: Implement Unix Timestamp to Daytime

nrgmsbki4spot1Given an unsigned integer that represents a timestamp since 1970/01/01 00:00:00 (which is Unix epoch time), output one of these: An array that stores year, month, date, hour, minute, second. A string in format YYYYMMDDHHmmss. Or whatever similar, as long as it complies with standard i/o rules. ...

 
Biweekly mini golf?
What is Biweekly mini golf?
 
13
Q: Introducing Biweekly Mini Golf!

Redwolf ProgramsIn order to grow our community and its chat room, The Nineteenth Byte, we decided here to start a new monthly biweekly chat event: Biweekly Mini Golf! During this event, a number of previously drafted "CMCs" (short for Chat Mini Challenge) will be posted, and anyone can reply with their solutions...

 
11:54 AM
@cairdcoinheringaahing Fixed but can you find bugs?
 
@Fmbalbuena I'd rephrase it as "The explanation for each character will be provided as input. You may choose how to associate each explanation with it's character (for example: dictionary; mapping; list where the first element corresponds to +, the second to -, etc.), but it must be consistent" Then add some test cases with other explanation texts
 
I'm bad at editing.
 
heyo gamers, it's go time ;p
 
@lyxal ?
 
Welcome to the 14th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added every 5 to 10 minutes. Feel free to keep suggesting drafts during the event. If you have any questions, don't be afraid to ask. Good luck!
3
 
12:04 PM
@Fmbalbuena a chat event that happens every 2 weeks
oh got ninja'd
 
in BMG Drafts, 49 mins ago, by lyxal
AIDraft: Find the single most repeated character or word in a string with exactly 4 unique characters, e.g.: AAAAAAAAAAAABBBBCDDDEFFFFF -> B
 
:59627173 no you post drafts in the draft roo.
 
in BMG Drafts, 45 mins ago, by lyxal
AIDraft: Given a positive integer N, output it's smallest and largest divisor other than 1. For example for 10 -> 2 & 5; 24-> 2 & 12 ; etc
in BMG Drafts, 48 mins ago, by lyxal
AIDraft: From an unsorted integer array, find the first missing positive number. e.g.: [3,-1,2] --> 1 ; [-10204433, 545371683, 156929402] --> 1 ; [1,-2147483648] - > 2
in BMG Drafts, 47 mins ago, by lyxal
AIDraft: Print out every 5th number between 1 and 100000. e.g.: [1,6,11...
those should be enough to get the party started
@cairdcoinheringaahing @GrainGhost do either of y'all want to pin the event message? (open to other mods and ROs)
 
@PyGamer0 you copied me
 
no i got ninja'd
 
thank
note to self: next time, pin in different room and move message here
AICMC: Given a list of integers, check whether there's one integer that occurs an odd number of times. If so, find the integer that occurs an odd number of times.
 
> other than 1
so that means your answer is invalid
AICMC: Given an array, output all unique triplets from the set of elements where sum is 0.
 
12:16 PM
@Fmbalbuena that still outputs 1 as the smallest divisor
AICMC: Write a function that finds the largest product between three integers in any given array.
 
@Fmbalbuena very good!
AICMC: Given a list L containing numbers and strings return whether or not it contains integer values so [1,"2", 3] returns true while ['a', 2 ,3, 4e7] returns false.
 
@lyxal I'm finding tips for golfing this
 
@lyxal Retina 0.8.2, 34 bytes
 
@lyxal golfed from my previous answerTry it online!
i can shave 2 bytes from that
 
12:19 PM
@PyGamer0 I feel like this is invalid, as the maximum shouldn't be the input; as stated by the test cases (10 -> 2 & 5 and 24-> 2 & 12)
 
@lyxal but its not stated in the question
 
> For example for 10 -> 2 & 5; 24-> 2 & 12 ; etc
that's stated in the draft
I don't usually take strict stances on validity for AI generated CMCs, but this seems to be an exception
 
nice!
 
@Fmbalbuena golfed
 
12:24 PM
AICMC: Given input as a string, return number of vowels in it (consider "y" to be not vowel). Consider capital letters same as small.
AICMC: Output all the pairs (x, y) from 1 to n such that x^2 + y ÷ 2 = integer
 
AICMC: Percentage of vowels in a string
 
@PyGamer0 get golfed on
 
12:28 PM
AICMC: Find the deepest level in a list - given [2,[[3],1]] should print out 2 using 0-indexing or 3 using 1-indexing for depths
Oct 20 at 12:11, by lyxal
(italics means I've inserted text to make it make more sense)
AICMC: Write a regular expression to turn all - and + signs into facts. If I feed the string '-, --, (+) you will spend them' your code should return 'fact, factfact, (fact) you will spend them'. This question is customarily scored "painfully difficult (i h8 math)"
3
 
@lyxal Some APLs:
 
@Adám how do i do (python;) f=\ lambda x.... in apl?
like \ doesnt work
 
What does \ do there?
 
@Adám continue to next line
 
@Adám are you bad at python
 
12:33 PM
@Fmbalbuena No. Are you bad at Zulu?
 
AICMC: Given a string, compute recursively (no loops) the number of lowercase 't' chars in it.
 
@Adám angimubi kuzulu ngiyadlala nje
@lyxal Is 2d langs allowed?
 
@Fmbalbuena google translate
 
@Fmbalbuena What I mean to say is that I can't be considered "bad" at something I don't know at all.
 
@Adám ty
 
12:36 PM
@Fmbalbuena have to make sure it's recursive apparently
 
@Fmbalbuena hmm. I'll say it depends on whether the language actually has recursion
 
something like Cascade or Flobnar
 
@PyGamer0 Fails on uppercase
What if we neither loop, nor recurse. OK?
 
@Adám uh, i dont know how to convert upper to lower
 
@Adám I would say that's fine
 
12:38 PM
@PyGamer0 TIO is out of date, so you have to use 819⌶ but the newest versions have ⎕C for that.
@lyxal dzaima/APL: +/'t'=
 
AICMC: Create a function that adds two numbers together and outputs a sentence with the result. E.g Inputs 5 7 should output Your answer is 12!
 
@Adám like Try it online!?
 
AICMC: Get frequency of every element in a given list/array
 
12:42 PM
@lyxal or better Try it online!
 
AICMC: Given strings A and B, find max length of the trailing substrings that are common in both.
 
@PyGamer0 Yes.
 
AICMC: Given a string convert it to an integer, remove all leading 0's. e.g "123" -> 123 and so on
 
@lyxal APL:
 
@lyxal Is CMC generated by AI?
 
12:45 PM
@Fmbalbuena yes
 
@Fmbalbuena correct.
 
gpt3
 
It's generated using Codex by OpenAI
 
gtp3?
 
Codex?
 
12:45 PM
@lyxal oh
 
gpt3 but it's trained on github
 
@Fmbalbuena same stuff as github copilot
 
@lyxal Like github copilot?
 
@Fmbalbuena pretty much exactly like
 
@lyxal but on text?
 
12:46 PM
@Fmbalbuena correct
 
@Fmbalbuena copilot allows insertions anywhere, codex only completes at the end
AICMC: Given an array A of integers, we must modify the array in the following way. We randomly, with uniform sampling (i.e. every choice has an equal chance of being chosen) choose one element from it (A[i], where i <= N-1), and subtract 1 from every other elements.
 
@lyxal can i post AICMC?
 
@Fmbalbuena are you an AI?
 
@Fmbalbuena if it's generated by AI, then sure
you're allowed to make minor modifications/clarifications, but it has to be mostly by the AI
 
12:48 PM
@lyxal like typing 2 words?
 
@Fmbalbuena notice how I've italicised some text in some of the AICMCs I've posted
that's where I've added text to make it clearer/more objective
 
@LeakyNun dang that's impressive
 
PhoneAutosuggestCMC: Given the fact that the stack is empty push random values and the program must output the valency of a single byte encoded to the stack. NOTE dont solve
 
it helps if it actually makes sense lol
I usually have to generate a few before I get anything that's solveable
 
12:50 PM
mine doesnt make sense lol
 
I've got a collection of a few drafts it generated that don't make any sense
 
@lyxal APL: {+/∧\=⌿↑⌽¨⍵} Try it online!
 
> Given that you are not touching air like that are exposed to the air. ::: Phone autosuggest
 
@Adám it's funny because you probably have that from the time you asked a CMC like that in the APL orchard
 
AICMC: Print all numbers between 1 and 100
it's really generated by AI
 
12:52 PM
I believe you
 
@lyxal so @Fmbalbuena is AI
 
@PyGamer0 no, they have github copilot
which is AI enough for the purpose of AICMCs
 
@lyxal I just wrote it from scratch.
@Fmbalbuena APL: ⍳100
 
@Adám well I just think it's a very funny coincidence it generated something you already asked as a challenge :)
AICMC: Given an input of "Mr John Smith", write a function that will replace all spaces in the above string with "%20"
AICMC: Given an array of strings, count how many start with the letter "w".
AICMC: Given an array, return the type of each element in it - integer or string
AICMC: Given a number n, return whether it is evenly divisible by 3.
 
@lyxal APL: +/'w'=⊃¨
 
Goddamnit! Somehow managed to break my daily login streak! :(
 
@lyxal APL: ≡¨ Try it online! (0 for integer, 1 for string)
@lyxal dzaima/APL: 0=3|
 
note that I sometimes add CMCs it generates to the prompt
 
@lyxal QuadR, 9 bytes. Try it online!
 
@Fmbalbuena bqn
 
12:59 PM
@PyGamer0 Off by one.
 
^
Anyhow, that's all the CMCs I'll be generating tonight
because it's midnight where I am
 
@lyxal What should it write if given any other input?
 
@Adám fixed
 
@Adám I would say to replace spaces regardless of input.
for some reason, it just decided to include that specific string
 
Hold on, I thought the solution should conditionally write a function.
 
1:01 PM
I mean, that'd be a valid answer too
 
But then the question is what my solution should write/output/do if given any other input.
@lyxal "from all other elements"?
 
Oct 6 at 1:20, by lyxal
I didn't write it, gpt3 did, so it's open to interpretation
 
AICMC: print 2 to the power of 100.
 
@Adám I left it as it was generated for posterity
it's meant to be good at code generation, not grammar lol ;p
 
@lyxal I assume the example for false is faulty.
 
1:03 PM
@Fmbalbuena Jelly, 3
 
@Adám no, because a isn't an integer
 
@Fmbalbuena APL: 2*100
 
@Adám surely that's 200 :P
 
@Adám i got ninja'd
 
@lyxal Oh, so whether or not it contains only integers?
 
1:05 PM
@Adám correct
 
@LeakyNun No, only in J and K.
 
@LeakyNun no thats 2120202
 
(the joke is that I also used * in my Jelly code)
 
anyhow, I'll be going to bed for the night now
o/
 
./
○/
 
1:07 PM
@PyGamer0 That's the spirit!
2
⍤/
 
o_,.-*
 
@Fmbalbuena What AI are you using?
 
github copilot
 
And it really generated your previous CMC?
 
@Adám you'd be surprised
Codex gave me "get the average of a list" once
Also, it depends on the prompt you give it
(i.e the surrounding text)
I came back to say that one thing because co-pilot is just codex but as an editor extension
o/
 
1:14 PM
@lyxal Me too but fibbonacci numbers. so i removed all previous CMC.
o_,.-*
 
@Adám ∊ with ⎕ML←0 :P
 
@rak1507 Doesn't give consistent value for strings.
 
true :(
 
what's its data? did it go through our previous CMC's?
 
1:45 PM
@lyxal [Retina 0.8.2], 9 bytes
@lyxal Charcoal, 12 bytes: IΣEaeiou№↧θι
@lyxal Retina 0.8.2, 14 bytes
@lyxal Charcoal, 4 bytes: ¬﹪N³
@lyxal Retina 0.8.2, 13 bytes
@Fmbalbuena Charcoal, 6 bytes: IX²×χχ
 
CMC: Given an odd prime, return (truthy/falsey) whether it is a sum of two squares
you can output two consistent values, not necessarily truthy/falsey
just have one value for "yes" and one value for "no"
so for example 3 is not a sum of two squares, but 5 = 1^2 + 2^2
 
2:28 PM
Morning!
 
Morning!
 
Afternoon!
CMC: Given a string, replace all its spaces with it.
E.g. Hello there worldHelloHello there worldthereHello there worldworld
 
s=>s.replace(/ /g,s)
 
Oh, right.
 
Wow, posting a survey on reddit is overpowered lol
 
2:39 PM
I was thinking it was interesting that QuadR can do this in 3 bytes: Try it online!
@RedwolfPrograms ?
 
@RedwolfPrograms I got 42 responses to one last night
 
@RedwolfPrograms You also get 42 responses if you ask for the meaning of life the universe and everything.
Odd, so JS regexps allow /[^]/ to mean /[\S\s]/ but don't allow // to mean /(?:)/
 
// would be a comment
 
Wait, what?
 
That's JS's comment syntax
Does RegExp("") work?
(It does, it seems)
 
2:44 PM
It gives me /(?:)/
 
Yes yes.
 
@Adám Vyxal, 3 bytes: ð?V
 
Nice.
 
@Adám Vim, 11 bytes: y$:s/ /<C-r>"/g
 
2:47 PM
Is it an interesting golfing trick that if you need a string that begins and ends with a slash, then you can most often omit quotes altogether?
 
It probably falls under some of the existing tips
 
The shortest way to write "/ // /" in JS would be / /+/ / no?
Because, yay, JavaScript.
 
@Fmbalbuena Vyxal, 2 bytes: ₁E
 
JS, the only language where "2/3/4" == 2+/3/+4
 
@Adám depends on operator precedence
if you need parens, it won't be shorter
 
2:52 PM
Of course.
 
@Fmbalbuena ErrLess, 5 bytes: 2TP#.
 
@lyxal I feel like this could be shorter, but Vyxal, 8 bytes: ‹₅ʁ℅⁽›¨M
 
3:08 PM
@LeakyNun Retina 0.8.2, 16 bytes
 
@Neil lol!
bingo
 
I think there's actually an answer somewhere which matches any integer that's a sum of two squares and returns the product of all the factors that aren't of that form
 
3:37 PM
why is HN still in dead room lol
 
why not?
 
@PyGamer0 that room will probably get deleted quite quickly
you can use a bookmark in your browser
 
4:08 PM
@PyGamer0 because I never left it
and I very rarely close the tab that keeps me in all of the chat rooms I'm currently in
or rather, I don't really ever close it, sometimes my computer just sleeps or crashes overnight
 
4:43 PM
Your computer doesn’t always sleep overnight?
very hard worker, does it have insomnia?
 
Even when my computer goes to sleep it stays in the rooms, so it only leaves chat over the weekend when it reboots
 
My computer seems to leave the rooms when it goes to sleep
weird
 
This is so cool
I made a thing
It takes a list of songs you like from a specific band, and returns a list of a few more you're likely to also like
 
5:00 PM
@hyper-neutrino I found out that my parents had unplugged my old desktop (which is at home, not with me) when I opened my laptop and I wasn't in any rooms :P
It basically only had a tab open on TNB, and because I close my laptop at night, that was keeping me in my starred rooms
 
So...you basically had a dedicated server for keeping you in TNB rooms? :p
 
I should've put that in my RO nomination :P
I think it also had a tab open on /review, but that was it
 
I keep 3 chat tabs and a review tab open at all times on my work computer. The chat tabs are TNB and Vyxal, and one other tab that rotates depending on what I feel like keeping track of.
 
Thanks, Microsoft. Very helpful.
@Fmbalbuena Pip, 2 bytes: Eh
(No TIO, but you can run it at Replit)
 
5:27 PM
Wow, I have no idea what it is I'm eating
It could possibly not have been intended to be food
Gotta love school food
Okay, after some thought, it seems they might've been attempting to make corn dogs
But they're tiny and don't taste anything like one
 
5:37 PM
@pxeger why
 
@RedwolfPrograms Would that challenge be a dupe of the 10x10 asterisks challenge?
 
@pxeger couple days later: 500 bookmarks
 
@AaroneousMiller No, what you need to do to write an answer is quite different
 
oh ok
@RedwolfPrograms wdym, looks good to me :P
 
5:38 PM
Hm, and it's JavaScript only
Probably just as well. It's essentially a builtin in Pip: OGt
 
Yuck, I don't know how my school's fries manage to be so oily...like, they're not fried normally in order to be healthy or whatever, yet they still somehow leave more stuff on your hands than ordinary french fries
 
@RedwolfPrograms wow you recreated youtube but for music
 
YouTube Music: Am I a joke to you?
 
yes
 
@RedwolfPrograms wow you recreated youtube but for music spotify
 
5:41 PM
@AaroneousMiller wow you reused my message but you didnt
 
wow you said yes
 
because yes
 
TIL you can post duplicate messages back-to-back if you swap between * and _ for your italics/bold
2
 
5:45 PM
@AaroneousMiller 1
 
@AaroneousMiller The first yes was *yes* and the second yes was _yes_
 
thank you se chat, very cool
 
@DLosc indeed
 
@AaroneousMiller Are you a plate?
 
@Fmbalbuena I am.
 
5:50 PM
@AaroneousMiller because this?
 
That video is because I am plate.
I am plate in lyxal's kitchen.

am plat

Jul 27 at 2:54, 10 minutes total – 7 messages, 2 users, 0 stars

Bookmarked 16 secs ago by Aaroneous Miller

 
i just showed that video to my brother
he says lyxal should make more funny vids
 
he does tho
 
@AaroneousMiller Are you clean?
 
@Fmbalbuena of course he is
 
5:56 PM
@Fmbalbuena Lyxal is a very responsible plate owner
 
redwolf, on the other hand, is not
5
 
@hyper-neutrino redwolf?
 
@hyper-neutrino hey lets star this so redwolf can see this
 
@Fmbalbuena No, that's not redwolf, I am :p
 
@RedwolfPrograms Radwolf Programs.
 
5:59 PM
Nov 9 at 2:57, by lyxal
holy heck you're an irresponsible plate owner
 
@m90 how do you crack my ><> post?
 
4 hours ago, by Leaky Nun
CMC: Given an odd prime, return (truthy/falsey) whether it is a sum of two squares
Sequel CMC: Given a prime, return whether it can be written as x^2 + 2y^2 where x and y are integers
 
m90
@Fmbalbuena I first noticed that the required output was the character code of Ç, which suggested either taking enough elements off the stack to get to a Ç -- which looked unlikely -- or capturing a new string containing a Ç; one way to do that was to reuse an existing quotation-mark character in a different direction, and that worked.
 
Actual poll: Should I generalize it to x^2 + ny^2 and make it a challenge on main?
 
@m90 do you think is obvious?
 
m90
6:14 PM
@Fmbalbuena No, not obvious, but not difficult either.
 
ok.
 
@lyxal Pip, 9 bytes: (_NaSKav)
@lyxal Pip, 11 bytes: Wa%UoxPoa/o (assuming the input is a composite number)
@lyxal Pip, 7 bytes: WoNgUoo
 
6:32 PM
@DLosc should i post AICMC or AIDraft?
 
At this point, the event is officially over, so you can just post a CMC directly in The Nineteenth Byte whenever you come up with a good one.
 
@DLosc yes
AICMC: print the sum of all digits of the factorial of the input but in binary
 
@LeakyNun So, n%4==1?
 
@emanresuA what is 5?
 
@Fmbalbuena You mean count 1s in the binary representation of the factorial?
 
6:39 PM
@Fmbalbuena is that "add the digits of the factorial together and convert to binary" or "convert the factorial to binary and add the digits"?
 
it's generated by an AI, how would they know
 
Ask the AI then :p
 
Typically the poster will either clarify, or leave it up to the answerer
 
@AaroneousMiller Hmmm i think "add the digits of the factorial together and convert to binary" im asking to AI
 
@Fmbalbuena Extended Dyalog APL, 5 bytes: +/2⊤! Try it online! (1s in binary representation of factorial)
 
6:42 PM
i asked to ai to do the code but he does add the digits of the factorial together and convert to binary
 
Oh.
 
@AaroneousMiller Vyxal, 3 bytes: ¡∑b
 
@Adám nope
 
x=>[...(f=n=>n?n*f(n-1):1)(x)+""].reduce((n,x)=>n+~~x,0).toString(2)
 
@Fmbalbuena 7 bytes then: ⊤1⊥10⊤! Try it online!
 
6:46 PM
@RedwolfPrograms Mathematica?
 
JS
Mathematica uses lots of PascalCase and square brackets
 
And & and #
 
@lyxal Pip, 9 bytes: 1+5*,20*m
 
@Adám & & & #
FTFY
 
AICMC: print the sum of the digits of input (input must be positive)
Suppose the (input must be positive) means if is negative, raise error.
 
6:55 PM
@LeakyNun Wdym?
 
@emanresuA can you express 5 as x^2+2y^2
 
Oh, I didn't see the 2.
 
@Fmbalbuena Vyxal s, 0 bytes: Try it Online!
 
@AaroneousMiller doesn't work if negative.
 
what do you mean, 1+2+3+4 is 10
 
6:58 PM
the sum of the digits of 1234 is 10
 
@AaroneousMiller but the says (input must be postive) so raise error
 
oh I interpreted (input must be positive) as (assume input is positive)
 

« first day (3945 days earlier)      last day (904 days later) »