« first day (2333 days earlier)      last day (2513 days later) » 

11:06 AM
@Tom thx
 
11:21 AM
I have just set a bounty on this challenge. It will go to the shortest answer in a non-golfing language
 
@Okx Sorry for disrupting you: I think I'll join another time, I have severe problems with my Wi-Fi, and that's the reason I didn't join when you pinged me in Spyfall. Sorry for interrupting.
 
@Adám MATL, 5 bytes (run-length encoding, maximum, show only top of stack)
 
@Okx invalid
it says length of it not itself
05AB1E, 4 bytes: γéθg
 
@LuisMendo Won't Mathematica win :P
 
CMC: Find the smallest positive integer x, such that given a positive integer n, n+x form a perfect square. n might be a perfect square itself, and if so x = 0
n = 4 -> x = 0
n = 3 -> x = 1
 
11:32 AM
@Mr.Xcoder Are you stealing this for a challenge
 
n = 6 -> x = 3
 
@ASCII-only Who knows :-) None of the current two answers is using a builtin that solves the whole task, as is customary with Mathematica
 
@Mr.Xcoder the dejà vu strikes again...
 
@LuisMendo Well the current Mathematica solution will certainly beat every single answer in a non-golflang :P
 
11:33 AM
Hey, that is asking for primes, not perfect squares
 
@Mr.Xcoder JavaScript (ES7), 19 bytes: n=>(-~(n**.5))**2-n
 
@Mr.Xcoder x ≠ 0 if x is positive btw
you should say non-negative
 
@EriktheOutgolfer :( would invalidate my answer
 
Jelly, 7 bytes: ‘ƲṆ$¿_
yeah mine too
or this one
Jelly, 5 bytes: Ʋ1#_
D:
 
@LuisMendo Well there was BifurcationPlot
 
11:45 AM
@EriktheOutgolfer No, positive. 0 does not have to be handled
 
but you say find the smallest positive integer x
 
@EriktheOutgolfer Oh, yes
I am so dumb
Sorry for that
 
CMC: Given an integer, output its complexity. Unary negation is allowed.
 
complexity?
 
@Arjun unclear what you're asking
 
11:54 AM
^
 
oh
it's a really complicated problem
I wouldn't say that it is a "mini" challenge
 
I think it's been posted though...or something similar?
 
@LeakyNun I see what you did there >_>
 
I am going to post that on main. Any suggestions?
 
11:55 AM
@KritixiLithos no pun intended
28
Q: Integer Complexity

The TurtleYour task is to write a program that, on input n, outputs the minimal expression of each number 1 through n in order. The shortest program in bytes wins. A minimal expression combines 1's with addition and multiplication to result in the given number, using as few 1's as possible. For example, ...

I'll hammer it once you post it.
 
Ah, okay. I won't.
 
what are you talking about, puns are always intended :P
 
@KritixiLithos I don't get the pun
 
CMC: Given an integer complexity, output all the numbers having that much complexity.
 
complicated too...
 
11:57 AM
@Downgoat my IntelliJ Idea takes a minimum of 5 minutes to load
 
Even more complicated, I guess.
 
@Mr.Xcoder Python, 49 bytes:
def f(n):
 s=n;a=1
 while s>0:s-=a;a+=2
 return-s
 
@ASCII-only Good point, I skipped that
 
@LuisMendo Not sure how anyone would be able to grab a hold of such old software though :P
 
especially pay for it...
 
12:00 PM
@EriktheOutgolfer Apparently it's been released for free though?
 
@EriktheOutgolfer This isn't Mathematica
 
wait that is from 2001?
or pun intended or something???
 
@EriktheOutgolfer ?
 
I mean, was that really released in 2001?
 
12:03 PM
@EriktheOutgolfer Yes
Wait apparently it's a Mathematica notebook <_<
 
I don't see where you download it so I wouldn't call it free...
 
@ASCII-only Oh, I got you wrong. I thought you meant one of the two answers was using that!
 
Also I kinda want to do it in JS
 
...I think you were supposed to buy a cd and when it got obsoleted they didn't release for free but rather not release at all
 
but IDK if I'll have to create the canvas in the function
Especially since there aren't many graphical-output challenges asking for output
@LuisMendo
 
12:21 PM
CMC: Given n, output n ns
 
@Arjun Jelly, 1 byte: x
 
Dyalog APL, 2 bytes, ⍴⍨
 
@Arjun JavaScript (ES6), 19 bytes: n=>(n+'').repeat(n)
 
user165474
@Arjun Anyfix, 2 bytes: "x
 
@Arjun Python 2, 14 bytes: lambda n:`n`*n
 
12:22 PM
markdown bork
 
@Arjun Cheddar, 8 bytes: n->[n]*n
 
user165474
[Port of Cheddar] Python, 14 bytes: lambda x:[x]*x
 
user165474
@ASCII-only I don't think that works?
 
user165474
Eh you probably forgot the brackets
 
user165474
So mine is a dupe then lol
 
12:24 PM
Oh wait array not string
What was I thinking
@Arjun JavaScript (ES6), 19 bytes: n=>Array(n).fill(n)
 
user165474
@ASCII-only that would give errors too (try ""*""):P
 
V, 4 bytes, Ài<C-r>a
 
CMC: Given a String s, output anything not s.
 
can the output contain s?
 
user165474
@Arjun Brainf**k, 17 bytes: ,[>+>+<<-]>[>.<-]
 
12:28 PM
can the input be an empty string?
 
user165474
@Arjun lambda x:x+'1'
 
@Arjun JavaScript, 11 bytes, s=>s==1?2:1
 
If the output can contain s (but is not s), then Carrot comes in at 2 bytes, #1
 
@KritixiLithos Yes
Concatenation not allowed
 
user165474
1 min ago, by Kritixi Lithos
can the output contain s?
 
user165474
12:29 PM
@Arjun darn >.<
 
ninja'd
@Arjun D: carrot used concatenation
 
@Arjun I think we had output an n×n×n×…×n (n ns) array of ns on Main.
 
@Adám Yes.
 
41
Q: N-dimensional N^N array filled with N

AdámIn: Enough memory and a positive integer N Out: N-dimensional N^N array filled with N, where N^N means N terms of N-by-N-by-N-by... Examples: 1: [1] which is a 1D array (a list) of length 1, containing a single 1 2: [[2,2],[2,2]] which is a 2D array (a table) with 2 rows and 2 columns, filled...

 
user165474
CMC: Given 0 <= n < 9, output n lines with the k-th line containing k of n.
 
12:30 PM
@HyperNeutrino What do the other lines contain?
 
user165474
@Adám D: what??? lol
 
what is "k of n"?
 
So given bith n and k @HyperNeutrino
 
user165474
@LeakyNun k occurences of n. so like nnn....nnn
 
ok
why < 9?
 
user165474
12:31 PM
@LeakyNun to prevent the integer from getting too many digits
 
user165474
sorry I meant <=9
 
@Arjun SOGL, 1 byte: Q
 
why ≥ 0 and not ≥ 1?
What would the output be for 0?
 
user165474
CMC (revised): Given 0 <= n < 10, output n lines where the k-th line contains n repeated k times for all 1 <= k <= n
 
user165474
@Mr.Xcoder empty or single linefeed, etc.
 
12:32 PM
@HyperNeutrino So a triangle?
 
user165474
@Adám yes
 
@HyperNeutrino I leave Jelly to yourself as a challenge :p
 
Test cases?
 
user165474
@LeakyNun ok :P
 
user165474
n = 4
4
44
444
4444
 
12:33 PM
@HyperNeutrino Pyth, 6 bytes: j*R`QS
 
wait, doesn't work
 
@totallyhuman హలో
 
@HyperNeutrino APL, 4 bytes: ⍴⍨¨⍳
 
@Arjun I can't read Telugu lol
 
@totallyhuman Neither can I (I am not south indian) :P
 
12:35 PM
If arrays are allowed, then ,\⍴⍨ in APL
 
@HyperNeutrino Python, 49 bytes: lambda n:"\n".join(k*str(n)for k in range(1,n+1))
 
Okx
@HyperNeutrino 05AB1E, 4 bytes: DL×»
 
user165474
@HyperNeutrino Jelly, 6 bytes: R€ṁ@¹Y
 
@KritixiLithos Nice solution too.
 
Okx
If arrays are allowed, 3 bytes in 05AB1E: DL×
 
12:38 PM
@HyperNeutrino Protest, Jelly cannot be longer than APL.
 
user165474
If arrays are allowed, 4 bytes in Jelly: R€ṁ@
 
user165474
@Adám I don't like the part lol
 
@HyperNeutrino I can do it in 5 bytes
with strings
 
CMC: Given an old CMC's content, output any valid solution to it by looking at replies to that CMC that match the regex /[a-z]+, ?, ?<backtick>.<backtick>/.
 
Okx
12:40 PM
example?
 
Bonus points for generating a TIO link as well.
 
Okx
do we get everything as input, so we don't need to use this internet?
 
@HyperNeutrino Try it online!... Fixed this time for the Python solution
 
@MDXF thanks for the bounty!
 
user165474
0/10 I use LanguageName, Count bytes: , not LanguageName, Count bytes,
 
12:40 PM
@HyperNeutrino I get this `x⁸;\`
 
user165474
@KritixiLithos darnit you weren't supposed to tell me :( oh well it's alright :) :P
 
@MartinEnder What bounty? I am curious to see interesting answer....
 
Hexagony answer on...
 
@HyperNeutrino but hey, they both have the same bytecount
 
user165474
39
A: Golf all the 16 logic gates with 2 inputs and 1 output!

Martin EnderHexagony, 89 bytes Thanks to FryAmTheEggman for some necessary inspiration for the XOR solution. 0000 !@ 0001 ?.|@! 0010 #?#!)@ 0011 ?!@ 0100 +?|@!? 0101 ??!@ 0110 ?<@!!<_\~( 0111 ?<<@! 1000 )\!#?@{ 1001 (~?/@#! 1010 ??|@!) 1011 \#??!1@ 1100 ?(~!@ 1101 ?.|@!) 1110 ?$@#)!< 1111 1!@ All program...

 
12:42 PM
@Okx You get the contents of a CMC. You have to use the internet for looking at all the replies to that CMC message. And then you extract the answers. And (optionally) generate a TIO link from the code).
 
it's a port of my apl answer btw
 
@HyperNeutrino Thanks, I see now.
 
user165474
@KritixiLithos yes but mine requires an extra thingy because map weirdness
 
Okx
@Arjun too complicated as a CMC.
 
user165474
@Mr.Xcoder lol I just went to his profile (which is an autocompleting URL when I look up Martin) and checked his rep history
 
user165474
12:43 PM
@Okx It's a Chat Mega Challenge
 
@HyperNeutrino I actually upvoted that answer yesterday...
 
o0 covfefify a string has a bounty on it
 
user165474
Jonathan -> Dennis IIRC?
 
user165474
+200
 
@totallyhuman Again?
 
12:44 PM
Ye
 
@totallyhuman I think @DestructibleLemon is really proud of that challenge.
 
user165474
well yeah it's the 8th most upvoted question after like under 3 weeks
 
Okx
the rep distribution of this site is so weird, 2 users sitting at the top with almost equal rep, then the next person has less than half
4
 
@Downgoat I've submitted two bugs.
 
I now see that @Dennis outgolfed @JonathanAllan , as the myth says. Wonderful!
 
12:47 PM
@MartinEnder Please take Cheddar out of the freezer, vielen Dank.
 
user165474
@LeakyNun submitted two bugs or two bug reports? :P
 
Okx
i mean, even jon skeet doesn't have over half the reputation of the person with the second most rep
 
@HyperNeutrino have you figured out the 5-byte solution?
 
user165474
@LeakyNun well Kritixi messaged another 4-byte array solution (equal to my array solution) so unfortunately I did not figure it out myself
 
@HyperNeutrino my 5-byte string solution.
 
user165474
12:48 PM
@LeakyNun Like x⁸;\Y?
 
oh, interesting.
 
user165474
Is there another one?
 
@HyperNeutrino port of my solution ಠ_ಠ
 
user165474
@KritixiLithos I credited you though ಠ_ಠ
 
but nice nonetheless
 
12:51 PM
@HyperNeutrino ẋ@€ṾY
 
user165474
Oh hm. Nice.
 
user165474
Wait what is this V. thing? must check out
 
user165474
is it jelly-uneval?
 
user165474
yep
 
here is a quick (or not) challenge. Given three sets of integers A, B, C each with n integers in them, what is the smallest possible size of the set {a*b+ c| a in A, b in B, c in C}?
could be a nice coding challenge?
to be clear, you have to come up with the three sets A, B and C
 
user165474
12:54 PM
Can A==B==C?
 
yes
 
user165474
I think if you make C[i] := -A[i] * B[i] you can have a maximum lower bound of 2n-1
 
@HyperNeutrino interesting.. can you check that for n = 30, say
 
CMC: draw this without any edges going over other ones.
 
I mean by code
what is CMC?
 
12:56 PM
chat mini challenge
 
aha
maybe mine was a mini challenge too? :)
 
user165474
@Lembik {1 2 3 ... 29 30}, {1 2 3 ... 29 30}, {-1 -4 -9 ... -(29^2) -900} -> wait no i'm dumb
 
user165474
that's not how math works lol
 
:)
 
user165474
maximum lower bound is n**2-n+1
 
12:58 PM
@HyperNeutrino are you sure?
 
I say A=B=C and having 0 in A basically minimizes the set.
 
@LeakyNun having 0 in the set doesn't make that much difference
it's just like reducing the size of A by 1
 
you're right, but every optimization counts
 
user165474
@Lembik I'm quite sure I'm wrong again
 
:)
 
1:00 PM
I say it's O(n^3).
 
always?
 
user165474
Well I mean the maximum possible is n^3 if all numbers are coprime
 
@MartinEnder thanks.
 
yes that is the max
it's the min that is intereting
 
@PhiNotPi long time no see
 
1:01 PM
hi
 
@PhiNotPi discord voicechat?
 
user165474
If A==B==C, then each product will have at least 6 ways to do it so it becomes n**3 / 6
 
user165474
(fairly sure I'm right for once this time)
 
user165474
wait no i'm still wrong
 
@HyperNeutrino what if A contains 0?
 
user165474
1:04 PM
it's not a*b*c ಠ_ಠ
 
user165474
@LeakyNun then that number increases i think
 
user165474
but no it's a*b+c
 
hmm, when I run grep and pipe it into a script, it works fine, but if I add the -r flag to grep, it doesn't pipe any output to the script
 
@Lembik should I ask it on math.SE?
 
@LeakyNun sure!
@LeakyNun although it could also make a code-challenge I think
please add a link here in any case
 
1:09 PM
ok, wait a sec
@Lembik should I limit the problem to integers or any real numbers?
 
integers I think
 
alright
 
although the minimum will be the same I suspect
 
@Okx It's the daily rep cap. They often hit rep cap so they stay close together
 
0
Q: Let $|A|=|B|=|C|=n$ be three finite sets of integers. Find $\min |\{ab+c | a \in A, b \in B, c \in C\}|$.

Kenny LauLet $|A|=|B|=|C|=n$ be three finite sets of integers. Find the minimum number of elements in the set $\{ab+c | a \in A, b \in B, c \in C\}$. I suspect that the answer is asymptotic to $\mathcal O(n^3)$. I can prove that the answer is at least $n$, since one can pick a fixed $a$ and $b$, and arg...

 
1:13 PM
n^3 isn't right
@LeakyNun let A and B be powers of 2. That is 2^i for i in 1...n
 
@musicman523 perfectly suits my question...
 
I did say "I suspect".
 
we get only at most 2n different a*b values
so the upper bound for this is O(n^2)
 
Ok, I'll edit it into the question.
 
user165474
@Lembik what about the +c part?
 
1:14 PM
that's what took you from 2n to n^2
 
user165474
oh
 
I would delete the "Link to original question, and link to approval of original author." part
 
@Lembik edited.
@Lembik why?
 
also you don't mean O(n^2)
you mean Omega(n^2)
discinct -> distinct
I don't think it's exactly 2n
it's at most 2n
 
> Submissions that would feed rational numbers to an LCM/GCD builtin are allowed, but non-competing.
 
1:17 PM
anybody know what sublime text is called in the command line
 
@Lembik I think it's exactly 2n.
 
@totallyhuman subl
 
thanks
 
I'm not sure if that line from this challenge is covered by the meta post on non-competing answers
 
no problem
 
1:18 PM
@LeakyNun ok
 
@Mr.Xcoder programs don't take any input. It's about the smallest program which creates a particular output. More details in this meta post
 
user165474
tfw you look at a question and think "i've never seen this before" and then see that you've upvoted one of the comments
 
tfw?
 
that feels when
 
thanks
 
user165474
1:22 PM
s/s//
 
i broke muh linux ;-;
 
@totallyhuman how?
 
idek ;;-;;
 
what's broken?
 
user165474
1:25 PM
@totallyhuman did you do the things that we were telling you to not do on chat (i.e. rm -rf /)
 
user165474
@TuxCopter "Max made me put this here" lol
 
no i ain't that dumb :P
 
@HyperNeutrino TFW you see an interesting challenge, write and answer, and are about to post it when you discover that you've already answered a shorter solution in the same language.
 
don't forget --no-preserve-root
 
user165474
@Adám lol that too
 
1:26 PM
I broke my linux the other day by doing chmod 0 /
 
user165474
@Mayube close enough I'm too lazy to ever type that
 
@musicman523 bad!!
 
user165474
>.< why do people like doing dum thingz
 
It was bad! I couldn't access /usr/bin/sudo to fix it
 
@musicman523 that's when you need to boot off floppies :)
 
user165474
1:27 PM
@musicman523 how did you fix it
 
@totallyhuman i'm reinstalling >.>
 
mv / /dev/null
 
And when I rebooted my desktop wouldn't load because it couldn't access anything
 
user165474
Does moving directories work?
 
user165474
0 is no-write no-read no-execute right?
 
1:27 PM
makes list of all his atom plug-ins
 
@musicman523 did you boot of a usb and fix it??
 
@HyperNeutrino I booted directly into the terminal mode and logged in as root, and fixed the permissions
 
user165474
good job
 
Once I rebooted I couldn't even log in as my user account lol
 
interesting that you could do that!
 
1:28 PM
@HyperNeutrino For those that can see deleted posts:
 
user165474
lol
 
@totallyhuman forget it, i'll install as i need them
probably need to clean it up anyways
 
0
A: Sandbox for Proposed Challenges

ZgarbSurrounded and reversed code-golf string decision-problem The task In this challenge, your task is to determine whether some string occurs as a substring of a given string both surrounded by another string and reversed. Your input is a non-empty string S of lowercase ASCII letters. If there...

 
user165474
1:43 PM
lol I just named one of my functions requireSingularDyadNumberOperator
 
ಠ_ಠ
 
user165474
it's similar to requireSingular
 
user165474
which is also mine
 
@Okx That sounds just like the distribution of riches in this world.
How much rep is there (approximately) on PPCG?
 
user165474
@Adám yep :/ top 1% hold 50% rip
 
user165474
1:44 PM
@Adám brb making SEDE query
 
@ASCII-only I don't know Javascript. You need to write a full program or function, as usual. If there are systems where the canvas has already been created by default, that would be acceptable, similar to people answering in Python REPL instead of Python
 
user165474
@Adám 7732346
 
user165474
sorry copy-paste fail
 
user165474
that means that Dennis (top) has about 1.89% of the total rep
 
@HyperNeutrino Yeah, and ME has the same.
 
user165474
1:50 PM
their rep is too close together lol ಠ_ಠ
 
o0 martin ender's abbreviation is ME
i am ME
therefore i am martin ender
 
@totallyhuman No you're not, you're yourself. I'm ME. Well, myself.
 
user165474
@totallyhuman no, you are the abbreviation of martin ender
 
yay my linux is back
and better than ever
@HyperNeutrino D: don't label me
 
my abbreviation is total BS
 
1:55 PM
1
Q: How far away is n to the next power of b?

Leaky NunLet n and b be positive integers larger than 1. Output the distance from n to the next power of b. For n=5 and b=3, the next power of 3 from 5 is 9 (3^2 = 9), so the output is 9 - 5 = 4. For n=8 and b=2, the next power of 2 from 8 is 16 (2^4 = 16), so the output is 16 - 8 = 8. Note that n is a...

 
user165474
HyperNeutrino created user label people who are the abbreviation of Martin Ender
 
user165474
HyperNeutrino added totallyhuman to people who are the abbreviation of Martin Ender
 
when did you become an RO :P
 
my initials are DR, that means I get an honorary Doctorate just for existing
 
user165474
:P
 
user165474
1:56 PM
My initials are AL which is also firstname[:2]
 
o0 130 mb of dependencies
 
2
Q: Challenges that invite non-competing answers

trichoplaxAlthough we have consensus on the Definitive policy about answers not meeting the challenge specification, it is aimed at answers rather than challenges. I had assumed that would imply that a challenge should not invite non-competing answers, but there doesn't seem to be anything on meta to make ...

 
...right i should update everything first
my initials are SB and that's not particularly interesting...
 
user165474
sumant bhaskaruni?
 
user165474
 
1:59 PM
@LeakyNun what do you think about posing it as a code-challenge?
 
no idea
 

« first day (2333 days earlier)      last day (2513 days later) »