« first day (2026 days earlier)      last day (3113 days later) » 

08:00
someone downdooted my sandbox post ;_;
and they didn't leave a comment about why ;_; jerk
0
Q: A Program in Python that picks 'k' largest (L) or smallest (S) elements from an array (length n)

Amamcherla NagaswathiProgram in python a program that picks 'k' largest (L) or smallest (S) elements from an array (length n). The program should take k, L or S, and n as arguments.

@DestructibleWatermelon They just gave you feedback for free... It wasn't written feedback, but it still starts a conversation so we can have a look and see what we think. Which one is it?
-1
A: Sandbox for Proposed Challenges

Destructible WatermelonTitle TBD Given an input string, in ASCII, output "+_+" as many times as the word "mime" appears in input, and output ";_;" as many times as the word "sad" appears in input. The order is irrelevant. If and only if no occurences of these words are in input, output "._."

@trichoplax Also its feedback for minus rep, and then no actual feedback
@DestructibleWatermelon Well it tells you something even if they don't write anything. It tells you to come and ask here before posting :)
Also, no rep on Meta so don't worry too much...
@DestructibleWatermelon My feedback: No winning criterion, well specified, not especially interesting, worth looking to see if there's a duplicate target in one of the other string replacement/search challenges
I'm guessing downvoters will tend to tell you what they dislike if there's something subtle or complicated, but otherwise they'll trust that someone else will easily be able to tell you what's wrong/missing
@DestructibleWatermelon Yes the rep shown on meta is just your rep on main (apart from sometimes it's out of date for a while)
No amount of downvotes on meta can hurt your rep
oh right, forgot to write codegolf
I downvoted because I don't think memes make good challenges
It was based on a CMC
I could change it, I guess
Even on main downvotes are really important to how the site works, and I think it's essential they be anonymous so we don't lose out on downvotes that people wouldn't bother using if they were going to get lots of backlash
08:16
@Mego Joy :| :D
I'm not sure what words and replacement words to use...
@LeakyNun I agree with @quartata that "Oh, please" has roughly equivalent meaning (just without the insult). A completely different wording that will help in many contexts is "Don't insult my intelligence", or occasionally "Don't insult my ability" (in the context of a competition of strength/agility/combat/skill). More generally, it is used to belittle a suggestion.
@DestructibleWatermelon Worth checking if the concept is a duplicate first
What words and replacement words should I use pls
@trichoplax what terms should I search for?
@DestructibleWatermelon I'm currently having a look at the tag
well, at least it isn't an alphabet challenge :p
08:26
I don't have a problem with alphabet challenges as long as the underlying task is new :)
Not necessarily a duplicate, but an example of string replacement:
9
Q: Replace alias to form phrases

removedInspired by the C-directive #define. Challenge Given one phrase with some alias, and one array with each alias text. Output the initial phrase replacing each alias with its respective text. An alias is defined by one sharp # followed by its index in the array (the index may start at zero or on...

@trichoplax They tend not to though
I searched for [string] replace is:q
To bring up only questions, containing the word replace and tagged
I kind of liked having the faces because of the composition and total number of chars
But memes make bad challenges or something
Well, it's certainly true that a meme doesn't make a good challenge. If it isn't already interesting, tacking on a meme won't make it better. If it is interesting, tacking on a meme won't make it worse, but it might make it unpopular just because memes become tiresome
It was more about the pattern the meme faces matched that I liked
08:30
@MitchSchwartz Wow, this Brainfuck answer! I did a double take when I saw it was shorter than Python
Which question?
Anonymous
Why is it that the Russian SO room generates so many chat flags?
@Mego Because they couldn't read that inspirational message about not using flags as jokes 'cos they're visible to everyone
@DestructibleWatermelon Since lots of people just add memes to try and gain popularity, it's easy to assume that's your reason. If you think the pattern is going to be interesting to golf, edit to explain that and then get feedback on how interesting others think it will be. You might get some useful suggestions if people know what you're going for
I think I found a fair good patter to use now
08:33
2
A: Evaluate an expression of ternary operators

Mitch SchwartzBrainfuck, 82 64 bytes + [ ,>>,> +++++++[<<<[------->>]<<-->-] << [ ->[<++>[+]] ] +>[>>] <<<- ] <. The output is \xff for 0 and \x00 for 1. The brainfuck implementation must allow going to the left of the starting cell, and for greater portability you may assume the output en...

wait, no
Well, the patterns seem more arbitrary without memes
-|- compared to +_+
made a pattern I feel happy with
-2
A: Sandbox for Proposed Challenges

Destructible WatermelonTitle TBD Given an input string, in ASCII, output ")|]" as many times as the word "right" appears in input, and output "(|[" as many times as the word "left" appears in input. The order is irrelevant. If and only if no occurences of these words are in input, output "X|X" this is code-golf

can you take the meme-hate downvotes away now?
I can't guarantee both downvotes are about the memes...
Well, why else would someone downvote with no reason, unless they just felt evil (>:])
If you leave it in the sandbox for a few days then there's more chance people will come along who are prepared to explain the problems
08:42
Personally, I can't see what the pattern adds to the challenge, compared to other string replacement challenges, so you would have to argue why it shouldn't be considered a duplicate
God, the university I’m visiting just garden-path-sentenced me
> To register for wifi, get Microsoft Office for free and learn more about our services visit our website:
I was like, “I have to get Office to use their Wi-Fi??” until I read the rest of the sentence.
It isn't grammatical anyway;
There’s an URL after the colon. It’s strange.
08:45
It would save people a lot of time if they put "Visit our website" at the front of the sentence
It says that unambiguously (office for wifi), but joins "learn more about our services visit our website" together ungrammatically
@DestructibleWatermelon No, the website shows you how to connect to wifi and get Office
@DestructibleWatermelon The sentence is grammatical
@ASCII-only exactly, but the sentence says other to that
It's grammatically correct, just with confusing punctuation placement that invites ambiguity
@DestructibleWatermelon No, that's exactly what the sentence says
08:47
Oh right, I forgot about the whole serial comma sometimes there sometimes not thing
Why english why?
I also love the irony of "To register for wifi ... visit out website"
Isn't it incorrect for omitting the comma between services and visit
@trichoplax mobile data
@DestructibleWatermelon English is the weirdest language
08:49
false
french is more weird
Errors Exceptions everywhere, and so many of the words are borrowed stolen
Why, why do people choose NOT to use the serial comma though. The only thing that does is confuse in any case
I think it's been long enough without returning them that we can call them stolen now...
@DestructibleWatermelon Yeah, but don't expect everyone to always have perfect grammar
@trichoplax Also, it isn't exactly a replacement; you don't output the rest of the string, you only output an amount of )|], (|[, X|X
Also, opinion survey; What is the best punctuation mark?
08:52
;
:31717766
@trichoplax I agree so much; It really should be used more
or ¿ and ¡
If it was up to me, English would use those by default
no; the best is ;
08:54
or greek question mark: ;
@ASCII-only It seems so bizarre to wait until you get to the end of a sentence before being told how to pronounce it
I hate it when people use colons instead of semicolons; It's thought of as useless yet so applicable when people don't realise
@trichoplax Not too bizarre, you're only supposed to say it differently for the last few words anyway
Still seems something you would announce up front. I can actually approve using them up front only, more than afterwards only
?Isn't this easier
Hello all
09:00
lla olleH
Anonymous
@trichoplax English is postfix. Operators come last. Adjectives are pushed onto a stack, and nouns pop all of them and apply them. Similarly with verbs, objects, and adverbs.
7
you are comparing English to a stack based lang... ?
@Mego I feel like I've just had my mind opened. Feels uncomfortable
@Mego TIL English is stack-based
brb creating a English parser
09:03
Then it shouldn't be too hard to make a parser
damnit, ninja'd by one second
@Mego Then Indonesian is prefix. Noun first, then the adjectives in most cases.
same for French
Anonymous
@Sherlock9 Spanish (and many other Romance languages) do the same
Anonymous
@ASCII-only Actually it is extremely difficult, because English is not a regular language. It has more exceptions than it has rules. Often, the reason why one grammatical formation is preferred over another boils down to "it sounds better that way".
oh well, at least there's already a decent English parser
09:09
That reminds me of when my brother asked why we don't use a phonetic alphabet for English. "Because no one can agree on the pronunciation and it's changing all the time."
and this problem can be prevented with a phonetic alphabet
Anonymous
@Sherlock9 Yep. In America, we basically just make up our own pronunciations and shoot the people that use pronunciations we don't like. :P
Anonymous
Some of the confusing parts of English come with infix operators, like commas and conjunctions.
I like verbs that have other verbs as part of their usage
@DestructibleWatermelon ?
09:15
"I have not driven" Have, uses driven as a part of its usage
you can push your adjectives onto my stack anytime. let's pop some nouns
@MitchSchwartz [Ellipsis]
oh right i forgot you were 12, sorry
@TùxCräftîñg Probably not: youtube.com/watch?v=EaYZljTlCUo
shouldn't corrupt innocent minds with talk about grammar
09:27
[['the', []], ['fox', ['quick', 'brown']], ['jumps', []], ['over', []], ['the', []], ['dog', ['lazy']]]
my parser work
Well, your prepositional phrase parser may need work, but that's an excellent start
Anonymous
One of my favorite grammar joke things of all time is the sword behind inappropriate prepositions from Kingdom of Loathing. It randomly picks an inappropriate preposition for every preposition in the game, even in chat.
Anonymous
It made for some hilarious combat messages
09:51
ζıℓəncε
Man, I should get back to KoL some day
KoL = Kingdom of Loathing, what Mego was talking about
Oh new CM13 snapshots
10:07
@Mego I must see this kingdom of loathing
it seems amusing
@TùxCräftîñg NOT THE SUPERFLUOUS UNICODE!!!¡¡¡
( ͡° ͜ʖ ͡°)
At the character class thing, and this game (Kingdom of Loathing) is already amazing
Many decisions, how could I choose
0
A: Sandbox for Proposed Challenges

FatalizePermutapalindromic numbers Given an integer N as input, output the Nth permutapalindromic number. A permutapalindromic number is a strictly positive integer such that there is at least one permutation of its digits that results in a palindrome (i.e. a number that is its own reverse). For examp...

10:20
Hey
that would be _z in pyth :)
@Sherlock9 I stopped playing because of daily reset, nowadays I'd miss it half the time
what the fuck?
@LeakyNun ?
10:31
why is TIO ad on main
@LeakyNun why not?
@drobilc what is _z in pyth? i thought it just reverses input
@ΛεγίωνΜάμμαλϠΨΠʹ Oh hello white spy
who put it in main?
10:32
@LeakyNun Yeah
@LeakyNun Nobody? It's probably because someone just posted it in the ad thread
@LeakyNun Exactly
what is the ad thread?
@LeakyNun Tux reversed my input :)
@drobilc use "Hey" as input and _ as code, implicit argument Q
@ΛεγίωνΜάμμαλϠΨΠʹ 0/10 not transparent
10:35
@ASCII-only I tried, but SE strips transparency
@LeakyNun Oh yeah, that seems to work :)
my profile have transparent background
@ΛεγίωνΜάμμαλϠΨΠʹ Use a gravatar? Geobits/Tux have transparency working
Is it possible to solve this problem wiht O(1) memory?
12
Q: How many lights are on?

CasperTheFriendlyCodeYou are little speck on a Cartesian plane. Pondering your existence, you decide to roam around your plane and touch things. You notice that every coordinate pair you visit has a light switch. To entertain yourself, you decide to toggle every switch that you come across. The Challenge: Create a p...

like a n^2 algorithm for example
35
Q: Community Promotion Ads - 2016

Grace NoteYou've graduated... a while ago. This is quite overdue, but let us not wait any longer. We present to you, Community Promotion Ads! What are Community Promotion Ads? Community Promotion Ads are community-vetted advertisements that will show up on the main site, in the right sidebar. The purpose...

10:37
Why am I getting "Http/1.1 Gateway Timeout" when I'm visiting my website from my phone but only when I have mobile data turned on?
@orlp theoretically yes, by checking whether each grid is passed
that would take you O(n^3) time
since you know that the farthest position is (n^2, n^2)
Also, I think you meant O(1) extra memory
well that's always implied
because an online algorithm can hardly exist
@orlp by the way, the common algorithm takes O(n^2) memory and O(n) time, still multiplying to O(n^3), so an algorithm with O(1) memory would need to have O(n^3) time
that is if O(n^3) is indeed the lower bound
Er... Isn't your submission O(n) memory?
@Sp3000 wait... alright, with hashing indeed it uses O(n) memory... so it might be possible to have constant memory and quadratic time
10:43
Does space/time normally just multiply like that?
@orlp yes it is possible, by having two pointers
let's say we found out that we are on the 100th arrow and our position is 3+4i
the other pointer would loop the whole string to see if we see 3+4i again
@drobilc you're not accidentaly using localhost, right?
nvm that wouldnt work
@ASCII-only no
I was thinking of that @LeakyNun
but there is a way of making that work
10:45
duplicates is the main problem
actually
I think this is O(n^2)
for each position in the string: O(n)
  check if current position occurred before in the string O(n)
  if not, check if current position occurs an even amount after this point, if yes, add one to 'on' count O(n)
O(n) * (O(n)+O(n)) = O(n^2)
I said it is O(n^2) already
> Seal Clubbers hail from the frigid Northlands, because one character class always hails from the frigid Northlands. They rely on their Muscle to survive.
I mean, without using extra memory
Wat iz O(x) n wat iz it calld
10:47
big-oh notation
asymptotics
@orlp ik
@ReleasingHeliumNuclei O(n) means that the runtime/memory is approximately n or a constant multiple of n
@LeakyNun not quite
O(n) means that the limit T(n)/n is a finite constant as n goes to infinity
@orlp yep your algorithm should work
10:49
How could I have not known what Kingdom of loathing was for this long ;_;
Can anyone help me to minify my code? codegolf.stackexchange.com/questions/86075/…
YES...No because I don't know Latex ;_; soz
@Chad brb
@ASCII-only brb?
@Chad be right back, waiting for tex editor to open
10:51
ok
do you know latex?
> You're a little nervous about encountering a crate this early in the game.
why'
WOw how could I have gone this long without knowing this game...
@Chad yeah, a little bit
ok
10:54
> \value{i}< 11
The space necessary?
@Chad But isn't no loop shorter? e.g. \documentclass{book}\begin{document}1 2 3 4 5 6 7 8 9 10\end{document}
wait
@ASCII-only Thanks
@DestructibleWatermelon Stanley's Parable?
Kingdom of loathing
10:57
@ASCII-only \documentclass{book}\begin{document}12345678910\end{document}
> Adventuring is the best way to get new stuff and make numbers get bigger. And you probably wouldn't be playing this kind of game if you didn't like watching numbers get bigger.
It's better here
@ASCII-only My code is 62 :)
@Chad I'm pretty sure that counts as only one number
no
@Chad you need a separator
read the fucking question
10:59
\documentclass{book}\begin{document}12345678910\end{document}
Use it
@LeakyNun where?
guys im trying to come up with a randomness test by testing whether the frequencies of length-k sequences are evenly distributed where k goes from 1 to the length of the text
is it feasible?
@Chad doesn't even work there with documentclass and document
wut
you have to change it to 12345678910 for it to work there, it's just an equation editor
if you want a true LaTeX editor, use Overleaf
11:02
@LeakyNun You'll have to define "feasible" since iterating through all subsequences of a sequence is O(n^2), which is polynomial and perhaps feasible in that sense. If you're analyzing something the size of a book, that probably won't work too well.
@LeakyNun Also, 0123456789 is a sequence where every subsequence is distinct, and hence they all have a frequency of 1.
@El'endiaStarman 10 does not occur
@Chad My bad, didn't see LaTeX mode
@LeakyNun Hmmm, oh, I see, right.
11:05
@El'endiaStarman so is it feasible?
@LeakyNun Like I said, depends on your definition of feasible. It's certainly a randomness test, but not necessarily a very good one. Another thing to consider: it doesn't make sense to consider subsequences longer than length log(k) because there will necessarily be some subsequences that aren't included, simply because there isn't space to put them.
Hmm. I've been considering contiguous subsequences thus far.
If you consider non-contiguous subsequences, then going through all of them is O(n^n) (I think), which is not polynomial.
3
Q: Are all numbers rational?

José VellojínIs it correct to say that some number $A$ is rational because $A$ is $\frac{A}{1}$? Because the only restriction I had see for rationality is $A=\frac{a}{b}$ with $b\neq0$, but in that way I can say $\pi$ is rational because $\pi=\frac{\pi}{1}$. What's the problem here?

wat
1
Q: All in all it's just, uh, another trick in code golf

Luis MendoThe purpose of this challenge is to produce an ASCII version of the cover of this great album by the rock band Pink Floyd. The brick junctions are made of characters _ and |. Bricks have width 7 and height 2 characters, excluding junctions. So the basic unit, including the junctions, is: ______...

11:36
> “[…] the Hahn polynomials are a family of orthogonal polynomials in the Askey scheme of hypergeometric orthogonal polynomials, introduced by Pafnuty Chebyshev in 1875 (Chebyshev 1907) and rediscovered by Wolfgang Hahn (Hahn 1949).”
Poor Chebyshev ;_;
@El'endiaStarman then log(k) it is
@Lynn There's a name for this, but I don't quite remember what it is right now.
@Lynn It usually happens :-(
Impractical to implement when first developed by Gallager in 1963, LDPC codes were forgotten until his work was rediscovered in 1996.
Stigler's law of eponymy is a process proposed by University of Chicago statistics professor Stephen Stigler in his 1980 publication "Stigler’s law of eponymy". It states that no scientific discovery is named after its original discoverer. Examples include Hubble's law which was derived by Georges Lemaître two years before Edwin Hubble, the Pythagorean theorem although it was known to Babylonian mathematicians before Pythagoras, and Halley's comet which was observed by astronomers since at least 240 BC. Stigler himself named the sociologist Robert K. Merton as the discoverer of "Stigler's law"...
The best thing is that it applies to itself! Stigler wasn't the first to describe this law.
11:42
With Gallager, at least
LDPC codes are also known as Gallager codes, in honor of Robert G. Gallager, who developed the LDPC concept in his doctoral dissertation at the Massachusetts Institute of Technology in 1960.
> Tut looks up at the moons, yawns, and looks back down.
Tut ;_; y u do dis. I needed your help
Tut is my pet sleepy wereturtle
......................................ok
I was fighting a barrel mimc
CMC: Or logic gate in Caker
How should Caker take input?
somewhere in the tape
that moment when a special move does less damage than a regular move ._.
i love OEIS sequences where calculate a term need predicting the future
12:00
No, those sequences only include the lowest possible value for each term
@uoɥʇʎPʎzɐɹC there we go!
Gotta level up my turtle by throwing it at things
12:16
@LeakyNun now only 83 bytes in C :)
1
A: All in all it's just, uh, another trick in code golf

Leaky NunPyth, 31 bytes I need to golf it heavily... the score is too shameful. AQVE<@.>B.>*H?%N3+\|*7d\_G4/N3H Try it online already. Input format 6,44 11 Output format ____________________________________________ | | | | | | | | | ...

@orlp now only a third of C!
@TùxCräftîñg what is caker
12:31
@TùxCräftîñg ñ is roughly a "ny" sound and ĉ is rouchly a "ch" sound
i just used fancy unicode chars...
@TùxCräftîñg i was just saying
0
A: Sandbox for Proposed Challenges

NeilPetals around the Roses Given 5 numbers from 1 to 6, calculate the number of Roses, Petals and Roots. Try guessing the formulas yourself by visiting http://jetpackshark.com/RPS before reading anybody's answers. (The dice-like display is significant.) This is code-golf, so the shortest program w...

@orlp Is uniformly random the most random?
wat ruby is stupid
12:37
why
ven
ven
/shrug
@LeakyNun what do you mean
@orlp well... in terms of shannon entropy maybe
just pick a standard
uniform random has the most amount of entropy, yes
alright
@TùxCräftîñg I think it wants you to enable the ssh-agent
i know
but it's the same manipulation
so why make 2 exact same things ಠ_ಠ
1
A: All in all it's just, uh, another trick in code golf

Leaky NunPyth, 43 27 bytes I need to golf it heavily... the score is too shameful. AQVE<*H?%N3X*8d+G*4/N3\|\_H Try it online already. Input format 6,44 11 Output format ____________________________________________ | | | | | | | | | ...

2 bytes off again
from 43 bytes to 27 bytes \o/
@TùxCräftîñg Maybe it's used to be different but then they made it the same and forgot to combine the steps.
13:07
Hello, currently on Mom's phone (I was permitted by her) on Microsoft Edge mobile on InPrivate.
@zyabin101 "I was permitted by her" sounds weird
you could say "by her permission"
or "with her permission"
Edit window has closed. 🙁
@zyabin101 what happened? Got banned from PPCG or something?
@Maltysen I reckon he just has his computer down or something
Windows is borked on his computer
and his modem only work on Windows computers
13:12
@Maltysen Lost my Lenovo A328.
To be exact, it's borked.
@TùxCräftîñg why?
because of a driver IIRC
Is it the drivers?
If so ndiswrapper is what he needs
@zyabin101 ^
Rhubarb
the 3 links at the end of the page are dead links
it's a new record
13:18
@zyabin101 eh?
@Maltysen In sopython parlance, it means "Bye".
Mom needs her phone, see you around.
13:33
in Python on Stack Overflow Chat, yesterday, by Jon Clements
What's that old quote? "The day that Microsoft make something that doesn't suck will be when they start making vacuum cleaners"?
0
Q: Do I need to use imports or can I call a class explicity?

yitzihNew to code golf and tried finding an answer to this question but couldn't (surprisingly) When scoring my golfed Java code I was told that I need to add in my imports as part of my score. My question is, if for example I am using a List. Do I need to use import java.util.* or (if it is only appe...

> It is basically a Roomba vacuum cleaning robot without the vacuum cleaner.
Confirmed that the vacuum cleaner doesn't suck
ಠ_ಠ Kro$oft make vacuum cleaners
13:48
@LeakyNun I actually like a lot of MS products, but that's still hilarious
@DJMcMayhem string challenge... time for V?
17
Q: All in all it's just, uh, another trick in code golf

Luis MendoThe purpose of this challenge is to produce an ASCII version of the cover of this great album by the rock band Pink Floyd. The brick junctions are made of characters _ and |. Bricks have width 7 and height 2 characters, excluding junctions. So the basic unit, including the junctions, is: ______...


« first day (2026 days earlier)      last day (3113 days later) »