« first day (2425 days earlier)      last day (2418 days later) » 

2:00 PM
python, 48 bytes: lambda x:sum([i*[i]for i in range(1,x+2)],[])[x]
(untested)
(there should be better solution >_>)
 
Python (untested): lambda x:int((2*x)**.5+.5)
 
@Mr.Xcoder PowerShell, 30 bytes -- param($n)(1..$n|%{,$_*$_})[$n] -- Same algorithm as Jelly
 
Jelly, 5 bytes: Ḥ½+.Ḟ (uses same algorithm as Mr. Xcoder's Python solution but came up with it independently)
 
Python, 25 bytes: lambda x:round((2*x)**.5)
 
Ain't no way I'm going to beat that with [Math]::Pow(), lol
 
2:04 PM
@AdmBorkBork Hehe. In Swift that would be even worse.. import Foundation<space>print(pow(...)), don't complain!
 
now try it in brainf**k
 
ಠ_ಠ
 
the square root is probably the tricky part for porting your algo
 
@HyperNeutrino it is.
Challenge: Try to come up with the shortest recursive approach in Python.
I have a 34-byte recursive approach.
 
@Mr.Xcoder Python, 38 bytes: f=lambda n,t=1:f(n-t,t+1)if n>t else t
darn I need to golf 4 then lol
 
2:08 PM
Mine is completely different
@HyperNeutrino 1 byte off yours: f=lambda n,t=1:n>t and f(n-t,t+1)or t
 
o nice
 
Ping if you want me to reveal mine
As a side note, mine is extremely strange
 
also I was using the a and b or c trick rather than b if a else c thing in my hackathon because it was shorter lol and that turned out to be a minor little bug rip
 
if b can be falsy
 
2:14 PM
yes
turns out it can be because 0-indexing for C
 
now someone walks in and outgolfs me
@HyperNeutrino You are about to receive a bounty :)
 
ooo :D
for oeis?
 
yes
 
Also, 39 bytes, f=lambda n,t=2:n<=1and 1or f(n-t,t+1)+1. It's worse but still :P
^^ yay
 
heh gettin' closer
 
2:17 PM
n<=1 and 1?
 
@HyperNeutrino n<=1
Really?
 
o
f=lambda n,t=2:n<2and 1or f(n-t,t+1)+1
whoops
 
Bitwise Hyper, bitwise. f=lambda n,t=2:n<2and 1or-~f(n-t,t+1)
 
@HyperNeutrino and 1
Really?
can't you return True?
 
f=lambda n,t=2:(n>1and f(n-t,t+1))+1
(36)
 
2:20 PM
Should I show mine?
 
i'd prefer not yet i still want to try to get 34 :P but you can if you want, i'll just keep chat tab closed/unfocused
 
Ok, will wait
 
I have 33 bytes now :D
 
Well done :)
 
you had to wait a long time :p
 
2:21 PM
:p
 
I think I can get 33 too, wait
 
the fact that it returns True instead of 1 bothers me but oh well :P
 
32 bytes
 
@HyperNeutrino you can get to 32
something at the end
 
2:23 PM
5 mins ago, by Mr. Xcoder
Bitwise Hyper, bitwise. f=lambda n,t=2:n<2and 1or-~f(n-t,t+1)
 
oh right thanks
 
@Mr.Xcoder Dyalog APL, 8 bytes: ⊢⊃∘(/⍨)⍳
 
dammit I keep forgetting about that one lol
 
@HyperNeutrino Mine was f=lambda x:x>1and-~f(x-f(x-1))or x
 
2:24 PM
huh nice
 
@Mr.Xcoder Why are you giving Hyper a bounty?
 
@cairdcoinheringaahing not him, MD XF
 
@cairdcoinheringaahing Who said I am giving him a bounty?
 
8 mins ago, by Mr. Xcoder
@HyperNeutrino You are about to receive a bounty :)
 
The bounty will cover the expenses of my bounty :D :P
@cairdcoinheringaahing that doesn't mean it's from him
 
2:24 PM
Explanation: the argument picks from (/⍨) the self-replicated indices until the argument.
 
@cairdcoinheringaahing I want to learn 2Deorstv, now that it's on tio BTW
 
I'm kind of interested in learning APL; it looks interesting :D
 
@HyperNeutrino Meh, I don't pay any attention to that question. P.S. nice First Ruby answer
 
thx :D
took me a lot of SO and DDG searches
 
@Mr.Xcoder Ok, but its still in development. I don't have time at the moment though.
 
2:26 PM
@cairdcoinheringaahing For when you have time :)
 
@HyperNeutrino I got home, picked up my phone and it buzzed almost right away. Nearly gave me a heart attack :P
 
@HyperNeutrino New challenge: Create another 5-byte Jelly solution.
 
@Mr.Xcoder nah I'm trying the next sequence in Positron :P Not because I can post another solution, but just for fun (seeing how much I can do within the restrictions of the world's most buggy "practical" language lol)
 
(not ịRx`$ or Rx`⁸ị or RxR⁸ị or Rx`³ị or RxR³ị :p)
 
2:29 PM
@HyperNeutrino This one is quite sad
 
Are tio's servers down or smth?
 
@Mr.Xcoder Not for me
 
@Mr.Xcoder Not for me.
 
I cannot run any program, not even the Hello, World! :-/
 
@Mr.Xcoder Blame Apple :P
 
2:31 PM
ofc I cannot use tio :/
@cairdcoinheringaahing ಠ_____ಠ
 
They are definitely having issues. Sometimes it works and sometimes it just times out
without the option to abort
 
^^
yep, you cannot even interrupt the process.
 
@cairdcoinheringaahing mhm yes indeed
 
@Mr.Xcoder That just renders as squares on Firefox, so no disapproval here :P
 
get font
also TIO was causing issues for me earlier; you'll notice that my Ruby submission uses repl.it
 
2:32 PM
@HyperNeutrino 0/10 requires effort
 
@cairdcoinheringaahing I have firefox and it works ಠ_ಠ
 
>_> I just electrocuted >_>
 
@Mr.Xcoder Huh, What? How?
 
@Mr.Xcoder huh, worked for a bit and then broke.
 
@Mr.Xcoder you mean static? come on electrocution is possibly fatal thing, a little shock isn't that important :p
 
2:34 PM
@Mr.Xcoder who did you electrocute?
 
@HyperNeutrino myslef
 
@EriktheOutgolfer static shock can kill if it's high enough :P
 
*grammar, shaky hands
 
@Mr.Xcoder o rip >_>
 
@EriktheOutgolfer I once got electrocuted (?) by lightning while suspended in water.
 
2:35 PM
I need to get a new charger lol
 
@Adám o_o suspended??? who kidnapped you and tried to drown you or something???
 
@FunkyComputerMan are you wheat wizard?
 
@Riker yes
 
@EriktheOutgolfer No, I was in a pool, not touching any sides, nor the surface or bottom.
 
2:35 PM
@Riker formerly
 
@Riker yes
ninja'd
 
cool
just wondering >.>
 
@FunkyComputerMan Why did you change?
 
@cairdcoinheringaahing To match my profile pic
 
@cairdcoinheringaahing that's something pretty common
 
2:36 PM
-2
Q: How to create dictionary of frequencies in one line

marka_17Let we have a array of numbers with repetitions. How to create dictionary of frequencies in one line(without "for")? Any ideas?

 
@NewMainPosts What was the fastest we ever deleted a new post?
 
@NewMainPosts Closed 4 minutes before it was posted here. Nice job :P
 
@Adám 5 mins or something
 
@Riley I'm not sure if that was programming help. It looks like an attempt at a puzzle instead
 
@Adám We didn't delete it, we made him delete it D:
 
2:38 PM
@Adám we didn't delete it the user did
 
@cairdcoinheringaahing @FunkyComputerMan I never implied that we did in this case. I just asked NMP a question.
 
I love that feeling, when the chemistry teacher asks you to solve a problem, you do so (well), and everyone else stares at you because they don't have a clue about what you've written :P
 
Oh I see
 
@Mr.Xcoder Yep, totally the best :DD
 
2:39 PM
@cairdcoinheringaahing isn't it? :D
 
except I have a microbiologist in my science class so I can't do that rip
 
@Mr.Xcoder Maths ones are even better :P
 
@Mr.Xcoder TFW you have a programming problem you need to solve, you do so (well), and you then stare at your solution because you don't have a clue about what you've written :P
 
too bad my math teacher never asked anyone to solve a problem on the board lol
^^ accurate
 
we don't have the subject "science". We do all "Chemistry", "Physics" and "Biology" at the same time :)
 
2:42 PM
@HyperNeutrino Nah, me neither, its just when they ask you a question and you use A-level language, and the rest of class looks at you like you're crazy, even better :P
@Mr.Xcoder We have "Science" on our timetables, but its split into biology chemistry and physics lessons
 
@Adám Sounds like brain-flak to me
7
 
@DJMcMayhem Or Jelly :P
What did the programmer say when he mis-converted a number into binary? Bit happens. :P
 
@FunkyComputerMan I thought it could go either way (leaning toward looking for help), but 4 others marked it as off topic because it's a stack overflow question. Either way it's now deleted by the author.
 
we haven't had a koth in a while
 
CMC: Return the number of partitions of a given list.
@HyperNeutrino Caird and I are working on some.
(independently)
 
2:49 PM
i'm starting to think of ideas for one; i'm wondering: should (ŒṖL) I (ah ok I might make one too) make it relatively smaller or make it a big one like the ant one?
 
@HyperNeutrino smaller ;D
 
I've got a good idea in the Secret Santa Sandbox. I just don't have the time or capability to write a controller which is why I donated it.
 
@cairdcoinheringaahing yeah true; I also had my gr10 science teacher say to me "alex too much math, my head's going to explode" because I was talking to one of my classmates about plotting three datapoints into a quadratic relation to see if it would make sense that way :P (I mean that's like grade 10 math isn't it?)
@Mr.Xcoder I mean if I make it bigger it's probably going to end up being completed after your/caird's koth's period of major attention so I wouldn't drain your competitor base :P unless you want to make a big one, in which case I'll do the opposite to avoid us competing for competition :P
anyway gtg now lunch o/
 
@HyperNeutrino \o and I am far from even starting writing the controller
Pyth, 3 bytes: l./
 
3:05 PM
@Mr.Xcoder Test case?
 
@cairdcoinheringaahing [1,2,3,4] -> 8
 
@Mr.Xcoder -1, no Jelly builtin :P
 
@cairdcoinheringaahing ಠ__ಠ
ŒṖ
 
@Mr.Xcoder Isn't that for a given integer?
 
@cairdcoinheringaahing No.
@cairdcoinheringaahing Try it online!
 
3:07 PM
ಠ_ಠ I don't know Jelly
 
Wouldn't it be ŒṖL though?
nvm just saw the tio lol
I'm trying to learn Jelly but it's progressing quite slowly >.>
 
s/it's/i'm/
 
@J.Salle You can apply to learn it faster here. Myself and Xcoder do it, and would be able to help you learn it, along with the two teachers.
(You don't have to if you don't want to, but just telling you about it)
 
Oh no that's actually very interesting
I was looking for stuff to learn it online but there's not much out there apart from the (very good) documentation pages
 
@J.Salle Once you requested access, just wait for one of the teachers to give you permission.
 
3:12 PM
Sure thing
 
@J.Salle Yeah, its mainly PPCG-centric. Not many people use it otherwise :P
 
@Mr.Xcoder Explain, please. You mean like [1,2,3] → 4 ([[1],[2],[3]], [[1,2],[3]], [[1],[2,3]], [[1,2,3]]) ?
 
@Adám [1,2,3] -> [[1, 2, 3], [1, [2, 3]], [[1, 2], 3], [1, 2, 3]] -> 4
Indeed
 
Hahahah I actually posted my first Jelly answer yesterday, took ages to make it work lol
 
@J.Salle In that case, you've already posted more Jelly answers than I have :P
 
3:16 PM
@Mr.Xcoder Why a given list then, and not "of a list of length N"?
 
@Adám You can choose to get the length instead.
 
@cairdcoinheringaahing hahahahah that's good to hear
 
Okx
@NickClifford yes it does, did you even check the wiki
 
@Mr.Xcoder Isn't that one of the crowd of nnn-numbers? Like Bell, Catalan, Fubini, Lobb, Raney, …?
 
3:31 PM
0
Q: Pagination in wrong place after new answer loaded in-place

MTCosterEDIT: This has already been reported site-wide here. When I clicked the bar to show an answer which had been submitted after I had loaded the page, the new answer was loaded, but above the pagination controls. See the screenshot below (complete with freehand circle) for clarification.

 
@Adám No idea
 
@Mr.Xcoder Dyalog APL, 5 bytes, takes list length as argument: 2*-∘1 two to the power of one less than the argument. There are length-1 potential splitting points. Each can either have a split or not.
 
Hi
 
@Adám Well if that's the formula, then Jelly, 3 bytes: ‘2*
I can't remember if decrement is or and I'm too lazy to open up we the wiki and check
 
@DJMcMayhem Ha! I can read that. decrement, 2 push 2, * power.
 
Okx
3:40 PM
 
Well, it's not really push.
 
@DJMcMayhem
 
@DJMcMayhem Makes sense that is decrement while is increment. One "points" down, the other up.
@DJMcMayhem Someday, someone needs to explain to me what the difference is.
 
@Adám Similar to APL?
 
Okx
wouldn't it be 2*’ ?
 
3:41 PM
@Adám It's a nilad-dyad pair, so it turns the exponent dyad into a monad that computes 2^Z
 
Same formula in Japt, 4 bytes: 2pUÉ
 
Okx
explain why i'm wrong
 
Push would be if it's a stack based language
 
Or 5 bytes to take the array as input: 2pUÊÉ
 
@Okx In APL, it would indeed be 2*’ if was decrement, but APL doesn't have decrement, so I use -∘1 which is the derived monad "subtract one".
 
Okx
3:43 PM
i see
 
@DJMcMayhem Someday, someone needs to explain to me what the difference is.
 
@Adám It's like tacit APL in the sense that it makes the left argument of * 2 with the right being the implicit input
 
@Adám Jelly is not stack based, so nothing is ever pushed
 
@Okx But J has decrement, so J, 4 bytes: 2*<:
 
@DJMcMayhem Unless using (kind of push :P)
 
4:16 PM
0
A: Sandbox for Proposed Challenges

AdmBorkBorkLittle Boxes code-golf ascii-art There's a song called Little Boxes about suburban sprawl that has lyrics as follows: Little boxes on the hillside, Little boxes made of ticky tacky, Little boxes on the hillside, Little boxes all the same. There's a green one and a pink one And a b...

 
Hey...now that the Tetris question is answered...we only have 82 more unanswered questions
 
4:32 PM
@NathanMerrill Oh, thank god! Only 82? Much easier now :P
 
the tetris was easily as hard as the the other 82 questions combined\
 
user image
2
Science has gone too far.
 
hmmm...next time one of you make a golfing language, you should call it Python or Java
 
I'll call it Java (no, not that one)
 
4:39 PM
0
Q: Target Practice

JonahYou are given a wall of dimensions W x H, and a number of bullets, B (all integers > 0). You will fire all B bullets into the wall, which is a grid, uniformly at random. That is, each bullet fired must have an equal chance of landing in every cell on the grid. Cells on the grid look like this:...

 
nah, the goal here is to give people bafflement when the read the headers
# Java, 8 bytes
 
@NathanMerrill :O
 
@AdmBorkBork How about "Llava"?
 
Or maybe a diacritic over an a, to make it distinct but easy enough to miss on first glance.
 
6
Q: Best Scoring Scrabble Board

NRGdallasChallenge Your challenge is simply to write a program in the language of your choosing that when run, determines the highest possible score for a board of Scrabble - For the sake of this challenge, a few rules have been modified. Notably, bonus squares are counted for every single word on the b...

...the scoring criterion one for this is the top answer by December 1 of 2012
any answer would technically be non-competitive
 
Anonymous
4:48 PM
@NathanMerrill Maybe Snake or Coffee
 
@AdmBorkBork Jаᴠа
 
oooh...better idea. For the people that want to have a "flag" for different versions of their code: Simply create multiple interpreters for each set of common flags, and name them all the same thing
 
@NathanMerrill Just to break TIO, how about [language name](link to language)?
 
@cairdcoinheringaahing Hm, surely there exists two PLs with the same name, no?
 
For example, ;#'s new name: [;#](https://;#.com)
 
4:52 PM
shame it wasn't #; otherwise its new name could have been &#0;
 
Anonymous
@cairdcoinheringaahing This is how we get banned by Dennis from TIO
 
@Adám aha! DASL
DASL (Datapoint's Advanced Systems Language) was a programming language and compiler proprietary to Datapoint. Primarily influenced by Pascal with some C touches, it was created in the early 1980s by Gene Hughes. The compiler output was assembly language, which was typically processed through a peep-hole optimizer before the assembler and linker. Reflecting its name, DASL was used for systems programming, mainly by the vendor itself....
The DASL Programming Language (Distributed Application Specification Language) is a high-level, strongly typed programming language originally developed at Sun Microsystems Laboratories between 1999 and 2003 as part of the Ace Project. The goals of the project were to enable rapid development of web-based applications based on Sun's J2EE architecture, and to eliminate the steep learning curve of platform-specific details. DASL defines an application as a domain model with one or more logical presentation models, where a logical presentation model consists of a choreography of the domain model objects...
 
@NathanMerrill A♯ vs. A#
 
Janus is a computer programming language partially described by K. Kahn and Vijay A. Saraswat in "Actors as a special case of concurrent constraint (logic) programming", in SIGPLAN Notices, October 1990. Janus is a concurrent constraint language without backtracking. Janus models concurrency through the use of bag channels. Code that needs to send a message to a process does so by constraining a bag to be the union of another bag and the singleton bag of the message. The other bag is then available to be constrained for sending subsequent messages. The process receives the message by matching the...
Janus is a time-reversible programming language written at Caltech in 1982. The operational semantics of the language were formally specified, together with a program inverter and an invertible self-interpreter, in 2007 by Tetsuo Yokoyama and Robert Glück. A Janus inverter and interpreter is made freely available by the TOPPS research group at DIKU. Another Janus interpreter was implemented in Prolog in 2009. The below summarises the language presented in the 2007 paper. Janus is an imperative programming language with a global store (there is no stack or heap allocation). Janus is a reversible...
 
ಠ_ಠ Stop with the oneboxing
 
4:54 PM
Janus is a really odd word to have duplicated
ah, apparently, its a Roman God
 
Go vs Go!
 
oh man. Same release year too
I'd hate to be the person that made Go! only to get scooped by Google
 
@NathanMerrill No its not. Go was released November 10, 2009; 7 years ago, Go! was released 2003; 14 years ago
 
KRL vs KRL
 
@cairdcoinheringaahing oh, I misread the wikipedia article
oh wait, no I didn't!
the wikipedia is wrong
 
4:58 PM
@NathanMerrill Although there was this
 
On the page for Go, there's the text: "For the agent-based language released in 2009, see Go! (programming language)."
 
@NathanMerrill Well, someone's wrong :P
 
Anonymous
@NathanMerrill Not wrong, but confusingly-written. It was introduced in a 2003 paper, but the first full release was in 2009.
 
@Mego where are you getting that info: Wikipedia says that the first release was 2007
well, I edited it: I'll let the wikipedia people sort this one out if they want
 
Q vs Q
 
Anonymous
5:03 PM
@NathanMerrill That was a preview release. I remember this coming up before (I think it was here in TNB), and someone found the actual full release, dated in 2009.
 
@Adám oooh. this one is useful. I can learn the latter and put it on my resume
 
@NathanMerrill from a potential CV: … I also know Swift and Go!
 
Did I hear "Swift"
 
5:14 PM
@Adám Also a storage engine. Swift is overused...
 
@mınxomaτ overwhat?
 
Why do you think it is overused?
 
As was just discussed, many things are called Swift, which leads to confusion.
 
@mınxomaτ oh that's what you meant :P
 
5:28 PM
CMC: Given a letter, return ONLY, and only ONE programming language name that begins with that.
5
 
When is the letter expected to arrive?
2
 
@mınxomaτ umm, is that intended to be a joke or something???
seems like a bad joke...
 
So do I have to return ONLY as a string, or what? I'm so confused.
 
Joe
Case sensitive?
 
5:38 PM
@Joe Input will be uppercase, you may mangle all PL names to begin with uppercase.
 
3
Q: Score a Game of Boggle

CowabungholeBackground In Boggle, a round is scored by adding up the points for each unique word a player has found (i.e. any word that more than one player has found is worth 0 points). The points are calculated based on the number of letters in each word, as follows: 3 letters: 1 point 4 letters: 1 poin...

 
Joe
[BCDEFGJKLQRST] represent the trivial cases, at least according to the Wikipedia list. Half the alphabet down
 
> Pyth, 32 bytes
> The current winner is Mr. Xcoder's Pyth answer at 33 bytes
userscript = fail :/
got fixed now
 
5:54 PM
2
Q: Visualize Nicomachus's Theorem

JonahNichomachus's Theorem relates the square of a sum to the sum of cubes: and has a beautiful geometric visualization: Challenge: Create the 2d part of this visualization in ascii. You will need a minimum of four "colors." Two to distinguish between regions within a "strip" (ie, the differen...

 
@Geobits That is how it reads
 
6:14 PM
2
Q: Simple complexity

ngnOutput # # # # # ##### ## # ## #### ####### # # ## #### ## ## # ### ####### # # # # ##### ### # # # # ### ###...

 
Anyone here knows European Computer Manufacturers Association Script?
 
@NewMainPosts huh?
seems a bit unclear
like, are trailing whitespaces allowed? answered in comments...leading whitespaces? (...)...leading or trailing lines with whitespaces? can we use another characters in place of space and # as long as they're distinct?
 
@EriktheOutgolfer those are extra questions. It's possible to answer right now without any of those clarifications
 
it's tagged , so can I for example use 0 and 1 instead of space and #? it would probably make the program shorter
 
though I agree that some of those things should be mentioned
 
6:25 PM
also
 
@dzaima Yes, but it doesn't have an explicitly stated winning criteria.
 
How can we output this? ASCII only, graph-like like Stewie commented, etc? — Riker 12 secs ago
@cairdcoinheringaahing you mean in the challenge body? yeah that's technically an issue too, although one of the less important ones, as there is a tag already
 
8
Q: Does the OP have to explicitly state the winning criteria?

caird coinheringaahingIf a challenge is tagged with code-golf or fastest-code, do you really have to say that that is the winning criteria in the question? It seems pretty obvious, just by looking at the tags, right? After all, we don't say "this is a discussion" on questions tagged with discussion, do we? However (j...

 
I mean, practically that's sometimes edited in by other users iirc, and not that much questions get closed just for that reason alone...
 
@cairdcoinheringaahing oh huh that exists. Though I agree it should be mentioned, it shouldn't be a close reason if a tag is there, someone should edit it in and explain why.
 
6:29 PM
that's probably because of new users probably putting that tag in there without knowing what it means
 
the how to ask tab should mention that the winning criteria should be in the post explicitly, as many probably posting actual challenges wouldn't have seen that meta post
 
there are many meta posts like that one though, we can't just list them all
like for example my post about mathematical ambiguities
 
@dzaima What?! Are you saying that not everyone reads everything I post on meta?
 
Anonymous
@cairdcoinheringaahing You post on meta? :P
 
Anonymous
I thought it was just me, Martin, and Geobits
 
6:33 PM
@Mego :p (also dennis, peter taylor, ..., ..., caird, me, the rest, ...)
 
@Mego Well, occasionally. That reminds me, I need to ask something there
 
Okx
@cairdcoinheringaahing invalid
 
@Okx that's what happens when a challenge gets edited after answers are posted ;p
 
Okx
ah
 
0
A: Sandbox for Proposed Challenges

sergiolUlam spiral 2 Like Ulam, I had a boring moment and began drawing a spiral like him's. But his version is utterly incorrect, as the \ diagonal distorts the equation n^2. The following picture illustrates an wrong Ulam spiral at left and a correct at right: I challenge you to output a numbered...

 
 
1 hour later…
7:45 PM
CMC: Given a list, return the ratio between their median and average
 
continue propagating the misconception that a ratio is a number :)
 
@Mr.Xcoder Median? Average? You mean mean?
 
@Adám what is unclear about this
average = mean
 
@Adám Average = Sum / length (arithmetic mean), Median.
@LeakyNun Why would a ratio not be a number?
 
@Mr.Xcoder because it isn't.
 
7:47 PM
Really hope this would be less biased towards jelly.
@LeakyNun Why?
 
@Mr.Xcoder why is it?
 
@LeakyNun Why is it not?
 
ratio expresses proportion among a list of numbers.
 
the "a:b = a/b" trick only works for two numbers
 
7:48 PM
> In mathematics, a ratio is a relationship between two numbers indicating how many times the first number contains the second.
 
and it is a trick, not a theorem.
> Ratios are sometimes used with three or more terms. The ratio of the dimensions of a "two by four" that is ten inches long is 2:4:10. A good concrete mix is sometimes quoted as 1:2:4 for the ratio of cement to sand to gravel.
 
@LeakyNun Then what would you substitute ratio with?
 
@Mr.Xcoder why would I?
 
@LeakyNun For a better CMC wording?
 
the rule with ratio is that a:b:c:.. = ka:kb:kc:...
@Mr.Xcoder return their median divided by their average
 
7:49 PM
Ik, I see what you are talking about.
 
@Mr.Xcoder I place my bet on Actually.
 
Who says you had to return an integer anyway? Why not just return a non integer ratio?
 
@Adám I place my bet on Jelly
^^
 
@DJMcMayhem where is this from?
 
Median is relatively hard task in jelly
 
7:50 PM
@DJMcMayhem It's built-in.
ಠ_ಠ
 
It is? Since when?
 
@DJMcMayhem A while ago
 
@LeakyNun I have no idea what you're asking
 
@DJMcMayhem It means, why suddenly ask this?
 
Cause I just joined the conversation?
 
7:52 PM
@DJMc, it is Æṁ, BTW
 
@LeakyNun Sorry, I should have said number instead of integer
 
a:b = a/b ==> a:b:c = a/b/c. QED. ;-)
 
I meant that it should be fine to return something like a:b
 
5 bytes in Jelly: Æṁ÷Æm
 
@DJMcMayhem heh, alright
 
7:53 PM
@Mr.Xcoder CMC: calculate median in jelly without a built-in
 
@DJMcMayhem 6 (?) bytes or something
 
@DJMcMayhem done many times
 
or 8
 
Cause mean is easy
 
@LeakyNun What was the minimum byte count for median before the built-in? 8, 9?
 
7:54 PM
Sounds about right
 
@Mr.Xcoder forgot
 
@DJMcMayhem 9 I think, can't be bother to golf further: L‘HịṢµS÷L
 
@Mr.Xcoder u can use the avg built-in :P
 
@LeakyNun ಠ__ಠ - I am too lazy rn
ಠ_ಠ Median doesn't sort in Actually
@Mego Bug or feature? The median built-in does not sort?
 
Median and mean in PowerShell ... based on this, I'm going to guess around 100 bytes.
 
Anonymous
7:59 PM
@Mr.Xcoder Feature
 
ok
@Mego Sorry for bothering, can this be golfed: æßS║/?
 

« first day (2425 days earlier)      last day (2418 days later) »