« first day (2485 days earlier)      last day (2653 days later) » 
00:00 - 20:0020:00 - 00:00

@LeakyNun did you?
did I what?
did you mean "hour map"?
no I didn't
we do not have any questions on hopf maps that is correct
do you have anohter reason to post that here? just pointing it out for somebody to make a challenge out of?
00:35
should we make some?
@Riker precisely
ah ok
@LeakyNun it was just the lack of that phrase that confuses me when I'm tired people
01:30
@Mego discord is being weird, but I'll likely be 15 minutes late to the d&d game, my fish tank filter was leaking and I need to move it/clean it
Anonymous
@Riker Ok
huh, I was wondering if you were here
@Mego looks good to me (read already)
 
1 hour later…
02:35
Do we have a "read a string, increment each character, output the result" challenge?
Or something similar?
Also, do we have a vanilla "is it a whole number" challenge?
@MDXF if there is... and it's not been done, I have a python solution lol.
but my guess is there would be.
somewhere.
Me too, but I couldn't find one.
(If there isn't, I call it.)
if you make it they will come :P
"they" being the people up to the challenge. Or the moderators who will squish your post.
not me though :)
I wish we could have a tweetable art II
that would be cool yeah
I can see that being a cool answer-chaining though
02:40
@ThomasWard Well, I'm going to search through everything here
That was my favorite question here... though I don't really participate in the code golf, so I'm not the target audience
maybe can only use a subset of ascii, that's not used by the previous submission?
and the 'art' is any 64x64 image, at least 1 pixel changed
@Riker I was thinking more along the lines of... now we have 280 characters, what can people come up with in that amount of space? Of course, last time, we had ray-traced buddhabrot and some other fancy things, so it would be hard to beat those
yea
I was trying to think how can it be changed from popcon to smth else
It could be a popcon but for image filters, maybe? You get to load in a 400x400 image in any format you like that doesn't count against your score, or maybe a fixed image that everyone uses
02:59
I can't believe it, we don't have one.
03:20
idea: PPCG plays <x>, like twitch plays smth but only ppcg people
-1
Q: Is it a whole number?

MD XFA number is whole if it is a positive integer with no decimal part. Zero is also a whole number. So 0 and 8 and 233494.0 are whole, while 1.1 and 0.001 and 233494.999 are not. Input A floating-point number in the default base/encoding of your language. For example, the default integer repr...

03:32
These comments are amusing
they depress me
I find it hilarious that a new user would come and find a highly upvoted answer by a moderator, and decide to have a problem with it
CMC: answer a challenge with a random TIO language. Respond to this message with a link to the answer! :D (Challenge yourself)
@MDXF why are we rejecting negative integers as integers
if we take input in as a float, negative numbers are included in Truthy results in most math
floats can be signed after all
nevermind
I might've confused whole numbers with natural numbers?
I think I did, the question has been updated
03:46
Is there a shorter way in Ruby to do the following?

g=gets.chop
w=gets.to_i
puts g==?M?w*5/6:g==?F?w*6/5:"UNKNOWN"
this is as far as I got
if g=="M", output 5/6 times w. If "F", 6/5 times w. Otherwise "UNKNOWN"
@MDXF whole = integer >= 0
you should include that in your first sentence
@MDXF I would specify in your first sentence that negative numbers are not whole numbers.
I actually had to look this up, but your negative number tests were valid returns. And ym post addresses it :)
in both Py2 and Py3, because I also included the Py3 equivalent of the Py2 in the same answer (slight bytes diff)
bet it could be golfed a bit but meh.
04:03
@MDXF input from stdin, or can we just pass it into a lambda to get truthy/falsy output?
CMC: make python dict like {'foo': 'bar', 'goat': 'boat'} into like ('foo', 'bar', 'goat', 'boat') or ['foo', 'bar', 'goat', 'boat']
@ThomasWard Default I/O methods allowed.
@ASCII-only :O how you make ubuntu be mac
@ConorO'Brien @ThomasWard Fixed.
@MDXF well that means my answer is now 21 bytes long, for both Py2 and Py3. Assuming lambdas. :)
i should update that for all your test cases
04:09
@ThomasWard :) Edited the question as well.
21 bytes in Python, yay.
that's not bad actually :)
@MDXF "non-negative integer" implies no decimals, because that's what an integer is
unless you meant "non-negative number with no decimal part"?
Does 'deterministic' mean that the output must be constant for the input?
For example, is outputting 2 for input 2 and 3 for input 3 but 0 for input 1.23 deterministic?
@Downgoat you probably know the answer to that
i meant to MDXF's last question
about what deterministic means :)
i need more drink.
@MDXF remind me how true/false is represented in C again?
because I think your code doesn't work at all
04:18
True is 1 and false is 0.
@ThomasWard 1 for true and 0 for false?
What happened with this Jelly code? | Try it online!
@MDXF then your code doesn't work for simple integers such as '3'
@ThomasWard I messed up the TIO footer code, not the actual submission
04:19
update your TIO link then
It's fixed
@MDXF still fails for large numbers like 100000000000000
Fail for test case 1e14 (input type = double). (assuming int == int32_t) — user202729 6 mins ago
^ this
@ThomasWard because INT_MAX is smaller than that
@MDXF then make a note of the limitations in your answer please
C can't handle those large of numbers
ok
04:21
because your program is only limited to a certain range of actual ints
C can. By using double.
@user202729 oh, so changing float to double in the TIO link will fix that?
Well, if your program doesn't work for all double value then it is not correct.
who ever said it had to support all input types?
1e14 is a valid double value, and 1e14f is a float value. (though it is not exactly equal to 1e14)
So what type does @MDXF answer support?
04:23
This is getting ridiculous. If any C type could store 1e14 then my submission would work.
he never specified 1e14 as an input value. 1e14 is just a way of generating a number, not the default input type.
Double can. Float also can.
1 min ago, by user202729
So what type does @MDXF answer support?
@ConorO'Brien Everything in C has its type. 1e14 is of type double. (if you are not familiar with C)
right but that's not provided as input
I am quite familiar with C
(It's my most-used language as of current)
04:25
You are not understanding my argument. If your answer always return true and it says "only positive integers are provided as input" then it's invalid.
@Mr.Xcoder I have to assume that you can't golf my Python down further :p
I'm looking for the relevant meta post regarding extraneous inputs
@user202729 You're being rather excessive. My program takes a decimal number as input, not a representation 1e14. And it works for any floating point value that C can support.
That's like saying the JavaScript answer is invalid because it does not support 10^88.
54 mins ago, by MD XF
These comments are amusing
04:28
can anyone help me golf: [e for(k,v)in a.items()for e in(c+k,v)]
@MDXF See? float does support 1e14. If you don't believe me you can print out the float value, I guarantee that it is an integer with value approximately 10^14.
@Downgoat python?
@user202729 Wrong
@ThomasWard yes
04:30
@user202729 You seem to be particularly caught up in syntax. 1e14 is one way of representing a number, but what would normally be inputted is a floating point value, whereas 1e14 has an implicit type outside of the default scope of programs on this site. Asking his submission to support is 1e14 is as valid as asking his submission to accept "100000000000000".
@user202729 tio.run/…
It supports inputs up to INT_MAX. If it really makes you happy I'll state that in the answer.
Ok.
So it support the float values which is ≤ INT_MAX. Which is a relatively small range of float.
@user202729 Fixed. See answer.
You should mention that in your answer
:P
1e14 is 1j14 in Jelly.
That's odd
04:41
so is jelly ¯\_(ツ)_/¯
Oh, my last message was wrong. 1e14 is 1ȷ14 in Jelly. (dotless j)
That's even weirder
Or, shorter, you can enter ȷ14 for 1e14, or j⁴ for 1e16.
Though I'm not sure if the last one work as a literal.
Still though, if you expect my solution to support 1e14 because it's "a standard floating point input" I see no reason why yours shouldn't. (Except that I disagree, so I don't care.)
meta says we can invert truthy and falsey right?
04:47
We can?!?
idk that's why I'm asking
Oh
I wasn't aware of that, but then again I'm rather inactive on PPCG of late
Anonymous
@ConorO'Brien The relevant meta post has two options with similar scores: any two consistent distinct outputs, or one consistent output for either truthy or falsey and anything else for the other.
Anonymous
Both support allowing inverting truthy and falsey
Anonymous
04:52
So unless the challenge specifically says "output truthy for X and falsey for not X", you can invert them
is that new? we used to not like that
@Mego Output: A truthy value if the input is whole, a falsy value if it is not. does that allow inversion or no?
Anonymous
@MDXF No, but the challenge author may choose to allow it.
Ok, just wondering (I'm the challenge author btw)
05:25
Does anyone have a handy link to the most recent "struck out 4 is still 4 :(" comment/answer?
06:10
@Mr.Xcoder The one time I get to call you out for failing to golf my code... that time is now.
@ThomasWard Ok... Sorry I guess
 
2 hours later…
07:58
what is your favorite number? mine is -1/12 because i like natural numbers
 
2 hours later…
09:57
Anyone here can help me troubleshoot a problem with installing Linux?
10:09
@user202729 anytime
So, I was trying to install Arch Linux by UNetbootin, but it display error askubuntu.com/questions/41930/…
My system: Windows 10 install on C: (NTFS), each partition has at least 10 GB empty space. UNetbootin from C:; 2GB Ram.
Some pages say that the NTFS may be a problem, but because I'm booting from hard disk I can't reformat it as FAT32. Moreover UNetbootin only display C:.
what are you putting the installer on?
try using an USB stick
"Hard disk."
if you are trying to use NTFS as the root file system, give up
So what should I do? Linux doesn't like NTFS? Why?
10:16
it's complicated AF and there's only experimental drivers, and there is no POSIX permissions
you'd want a separate partition with ext4 or something similar
also, I wouldn't recommend Arch for a beginner
"UNetbootin only display C:", and I have 3 partitions, the 2 other ones are FAT32.
do you have an USB stick you can put the installer on?
Probably; but it's also NTFS. The last time I need to put something exceed 2GB on it, and I decide to reformat it.
IIRC unetbootin reformats the drive anyway
That's bad. So I need to backup things on it before using?
10:20
@user202729 yup
that's also why using a hard disk is a bad idea - too much to backup. Then when you are actually installing, it's an additional set of headaches
So the reason why NTFS doesn't work is it is Microsoft-specific. But FAT32 only support things up to 2GB, iirc. What should I do in that case?
Can I backup onto the hard drive? And would install Linux delete other things in the partition?
@user202729 FAT32 will work for an installer. You want to have some unpartitioned space for a Linux partition and swap
@user202729 if you don't tell it to, it won't delete stuff. Is this your first time with Linux?
So... the (USB) which hold the installer must be FAT32, but not necessarily on the partition Linux is installed on? Ok. / Should I make another partition? / ← ok so probably I don't need one.
@NieDzejkob Yes, unfortunately.
Still, backup the USB to the hard drive may be quite time-consuming, any better idea?
how much stuff is on the USB? I don't think it'll take THAT long
1.68 GB.
10:33
@user202729 well, you can try to install from harddrive, but then you might need to backup a whole partition, which will take longer, and messing with the bootloader on the main hard drive might end bad...
@user202729 eh, that's fine. I'd expect 5 minutes at most
Looks like I could find another USB. How much memory would be required?
"ISO Size: 523.0 MB" for the newest Arch Linux installer, but you should only go with arch if you are willing to mess around, it's not really recommended for beginners
Probably I can handle it. Though I'm not sure what will happen to me until I actually try it. If I fail I will use some more beginner-friendly distribution.
@user202729 The Arch FAQ puts it that way: "If you are a beginner and want to use Arch, you must be willing to invest time into learning a new system, and accept that Arch is designed as a DIY (Do-It-Yourself) distribution; it is the user who assembles the system.". A normal distro runs an installer which asks questions and copies files, Arch gives you a shell and a manual on what you need to do. It's pretty well written, tho. I think a programmer should be able to handle it.
0
A: Sandbox for Proposed Challenges

sergiolView float numbers in graphical binary IEEE 754 is a well known format for representing floating point numbers. Your task is to give an input to the user where he/she enters a signed float number and represents clearly the number in a color separated by functional area binary 32 bit single repr...

10:41
you said you tried to install from C:, can I see what C: looks like, unetbootin could have made a mess
it would also be easier to help you when I could see your current partition layout...
hello
0
A: Sandbox for Proposed Challenges

sergiolView float numbers in graphical binary IEEE 754 is a well known format for representing floating point numbers. Your task is to give an input to the user where he/she enters a signed float number and represents clearly the number in a color separated by functional area binary 32 bit single repr...

just posted this challenge
what can people suggest me to make it a better question?
10:59
A better question would be: If the shell is displaying, how can I view the manual?
dir command get:
 Volume in drive C has no label.
 Volume Serial Number is ACD3-4E1D

 Directory of C:\

11/18/2017  04:36 PM    <DIR>          arch
07/10/2015  03:26 PM                10 config.sys
11/18/2017  04:37 PM    <DIR>          EFI
10/24/2017  12:03 PM    <DIR>          FPC
07/08/2017  03:03 PM    <DIR>          Intel
11/18/2017  04:37 PM    <DIR>          isolinux
08/03/2017  10:59 PM    <DIR>          lazarus
11/18/2017  04:37 PM    <DIR>          loader
03/05/2017  01:46 PM    <DIR>          MinGW
09/25/2017  10:53 PM    <DIR>          mingw_dev_lib
11:27
@Downgoat JavaScript, 28 bytes: o=>[].concat(...Iterator(o))
random question: what was the first golfing language to utilise more than the printable characters (i.e. more than ~97 single byte commands or a codepage, ect)?
 
1 hour later…
12:40
@dzaima I think golfscript uses the control characters from ASCII, if that counts
@user202729 it's on the web
> viewed 10,001 times
\o/
What is the consensus on answers that are in the LQP queue, but the only problem is that they don't meet the challenge spec? Do we VTD?
@cairdcoinheringaahing oh huh, I thought golfscript was full ASCII.
12:57
@Mr.Xcoder way better
13:29
@NieDzejkob Of course it's on the web. But I means it's quite inconvenient to have another device around to read the manual.
@user202729 I think it's a live system with a browser, idk. I've never actually installed Arch :P
Anyone want to crack this? (Reversed Engineered from Uniqueness - CnR)
 
1 hour later…
14:34
ᴀʙᴦΔᴇᴢʜΘɪᴋᴧᴍɴΞᴏᴨᴩΣᴛʏΦΧᴪꭥ
@EriktheOutgolfer why no greek small caps in unicode ;_;
what
you should petition to add it in unicode lol
not really interested :p
I was trying to make "ἀγεωμέτρητος μηδεὶς εἰσίτω" in smallcaps
oh like the harvard entrance?
14:36
was it harvard?
wiki says Plato's academy
maybe harvard used it
"ΑΓΕΩΜΕΤΡΗΤΟΣ ΜΗΔΕΙΣ ΕΙΣΙΤΩ" will do
I think some american university did that too
I see
0
Q: The Median of Practically Recreational Languages

GryphonAccording to the TIO Nexus there are two types of programming languages: Practical (seen in many corporate environments as a development standard). Recreational (if seen in a corporate environment, you're probably fired). Your Task Mix together one language from each of these realms to achie...

@NewMainPosts that's very fast
ᴀᴦᴇꭥᴍᴇᴛᴩʜᴛᴏΣ ᴍʜΔᴇɪΣ ᴇɪΣɪᴛꭥ
14:39
there should be omegas instead of squares right?
yes
small caps
i see omegas
update your font
btw this:
http://pyth.herokuapp.com/?code=Xz%22%CE%91%CE%92%CE%93%CE%94%CE%95%CE%96%CE%97%CE%98%CE%99%CE%9A%CE%9B%CE%9C%CE%9D%CE%9E%CE%9F%CE%A0%CE%A1%CE%A3%CE%A4%CE%A5%CE%A6%CE%A7%CE%A8%CE%A9%22%22%E1%B4%80%CA%99%E1%B4%A6%CE%94%E1%B4%87%E1%B4%A2%CA%9C%CE%98%C9%AA%E1%B4%8B%E1%B4%A7%E1%B4%8D%C9%B4%CE%9E%E1%B4%8F%E1%B4%A8%E1%B4%A9%CE%A3%E1%B4%9B%CA%8F%CE%A6%CE%A7%E1%B4%AA%EA%AD%A5%22&input=%CE%91%CE%93%CE%95%CE%A9%CE%9C%CE%95%CE%A4%CE%A1%CE%97%CE%A4%CE%9F%CE%A3+%CE%9C%CE%97%CE%94%CE%95%CE%99%CE%A3+%CE%95%CE%99%CE%A3%CE%99%CE%A4%CE%A9&debug=0
is why I like to use Pyth
@EriktheOutgolfer which one looks better?
@LeakyNun which one? in both I couldn't see the omegas
are the delta and the sigmas not small caps or is my font broken?
14:42
but I can see the other letters
1. minuscule with diacritics
2. minuscule without diacritics
3. majuscule with diacritics
4. majuscule without diacritics
5. pathetic small caps
@betseg there is no small-cap delta and sigma in unicode
if you scroll up, I was complaining about that
i thought you found no greek smallcaps in that message, then i thought "oh he found them" after you posted the smallcaps text
9 mins ago, by Leaky Nun
ᴀʙᴦΔᴇᴢʜΘɪᴋᴧᴍɴΞᴏᴨᴩΣᴛʏΦΧᴪꭥ
14:44
i thought they all were capitals ;_;
also is there a square or an omega in there?
omega
smallcaps omega
smallcaps headphone
14:45
how do you call the shape of the psi?
tri- something
neptune's sign
trident
@betseg not Neptune's, Poseidon's ;)
the greek god is called Poseidon
@EriktheOutgolfer how do you Greeks view Greek mythos?
are you required to study them?
14:46
yes :/
our flag, contrary to popular belief, is not based on islam, but gokturk religion
but only in grade 3 IIRC
interesting
do you have any opinion on it?
well, mythology is based on facts, so mythology may or may not be true at any of its parts
not of its veracity lol
just general opinion
14:49
well, Poseidon is to hate for sure
I don't even know who he is
a greek deity
(not orthodox christian, ancient greek religion)
there were 12 olympian gods
@LeakyNun :O 10/10 to Pyth indeed!
Zeus, Hera, Athena, Hermes, Ares, Demetra, Poseidon, Estia, Aphrodite, Apollo, Artemis, Hephaestus
o Greek mythology
14:55
are the greek and roman mythologies same
no.
Not even the god names are
of them, at the very least Poseidon (god of liquids) and Apollo (god of divination, music, dance, ethos and logic) were more egoist
Hehe that reminded me of a game... My username there was Poseidown
neptune is the god of liquids and apollo appears in both mythologies
maybe not the same but similar
yeah of course similar
15:00
hint: whose civilization influenced the romans'?
greeks? i really dont know anything about history or mythology
sure
since the romans took over the greeks, the greeks' culture influenced the romans'
so it shouldn't come as a surprise that the romans' mythology is similar on some parts as well
while(a = b())
gcc -Wall
warning: suggest parentheses around assignment used as truth value [-Wparentheses]

while((a = b()))
gcc -Wall
[nothing]
what's the difference, if there is any?
it's just a warning
but yeah it doesn't make much sense
well -Wmisleading-indentation is also a warning
15:25
Aww, did I miss the conversation about Greek mythology?
Phew, I managed to outgolf Husk in Charcoal.
CMC: Given two numbers, convert each to binary, add the digits as though performing decimal addition, then convert the result from base 4
@cairdcoinheringaahing JavaScript: (a,b)=>parseInt(a.toString(2),4)+parseInt(b.toString(2),4)
@betseg the first one is more easily confused with while (a == b())
ohhh
Anonymous
15:41
@cairdcoinheringaahing Actually, 9 bytes: ♂├♂≈Σ$4@¿
Anonymous
Convert to binary, convert to integers, sum, stringify, interpret as base-4 int
@cairdcoinheringaahing SOGL, 10 bytes: 2{.2─r}+4│
Jelly, 4 bytes (untested): BSḅ4
Never mind, that's wrong
Pyke, 7 bytes: Fb2b4)s
@Neil why not ternary
15:59
@cairdcoinheringaahing Jelly, 6 bytes BḌSDḅ4
Can someone who knows Python regex tell me why these two regexes match different things: (-?\d*[ᴇ.]?\d*)ı\1$ and ^-?\d*[ᴇ.]?\d*ı-?\d*[ᴇ.]?\d*$
The second one matches ᴇı-. but the first doesn't
@cairdcoinheringaahing the first ones \1 expects the 2nd part to be a literal copy of the first parentheses, so the stuff before and after ı need to be the same
@dzaima Ah, so it references the string, rather than the regex itself?
@cairdcoinheringaahing mhm
Jelly, 6 bytes: (take input as array) BUSUḅ4.
The Us are so annoying... At least they flatten to lowest level which is what we need here.
16:23
I'm still creating that code golf compression format, and I've identified a model to go by
ZPAQ is an open source command line archiver for Windows and Linux. It uses a journaling or append-only format which can be rolled back to an earlier state to retrieve older versions of files and directories. It supports fast incremental update by adding only files whose last-modified date has changed since the previous update. It compresses using deduplication and several algorithms (LZ77, BWT, and context mixing) depending on the data type and the selected compression level. To preserve forward and backward compatibility between versions as the compression algorithm is improved, it stores the...
Switch out the register model for a stack model, reduce header overhead, and inject a few preset models, and I think I could have something rivalling bubblegun while requiring some cleverness to extract minimum length from
*bubblegum
Should I stick with the flat heap model, or should I have a multiqueue model?
@user202729 Pretty similar to mine, BḌSDḅ4. Nice approach though
\o/ Levant can (kinda) output Hello, World!
16:40
-2
Q: Convert to 8051 microcontroller assembly code

Christie#include<reg51.h> #define lcd P1 sbit rs=P3^6; sbit e=P3^7; sbit relay=P0^0; sbit s1=P2^0; sbit s2=P2^1; void delay (int); void cmd (char); void display (char); void init (void); void string (char *); void view (int); int count=0; int no[10]={ 48,49,50,51,52,53,54,55,56,57 }; void delay (int ...

yay finally overhauled my SOGL keyboard system so now I can either use alt+key or press the key on my other keyboard :D
hy can anyone help me with httpd
?
17:02
@cairdcoinheringaahing achievement :D
@Mr.Xcoder Well, it returns it as a list of characters :P
@AndreiClaudiu I don't think this is a topic for The Nineteenth Bytes
18:02
@cairdcoinheringaahing APL (Dyalog), 11 bytes: 4⊥+/2⊥⍣¯1⊢⎕
@Adám AND YOU SAY APL is not a golfing language :D
@Mr.Xcoder Yes, as you can see, we need TWO BYTES to sum!
ಠ_ಠ
how can the rest be so short?
18:22
It is very fun to zoom in as much as possible on chat on mobile and try to read messages :P
@cairdcoinheringaahing i tried, monospace fonts borked
Or 39: lambda d:[i for k in d for i in k,d[k]]
(note that the third one is horrifically inefficient)
18:44
@Adám Only 2 bytes? Python needs 5! You should be so lucky :P
@cairdcoinheringaahing And js needs 14... eval(<list>.join`+`)
Unless I am just a beginner which hasn't found the short way yet
19:08
It's unbelievable how dumb I am, but HOW DO I UPGRADE UBUNTU??
@Mr.Xcoder 14 plus the length of the list. Poor JS golfers.
Anonymous
@feersum sudo do-release-upgrade
@Mego I tried that one
Anonymous
Make sure to sudo apt update first
Anonymous
Also what version are you using currently?
19:12
I did that
Still tyring to find the error message in the scrollback..
15
Ah I'll just do it again
> The required dependency 'apt (>= 1.0.10.2ubuntu2)' is not installed.
Anonymous
382
A: How to install software or upgrade from an old unsupported release?

fossfreedomThe repositories for older releases that are not supported (like 11.04, 11.10 and 13.04) get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com The reason for this is that it is now out of support and no longer receiving updates and security patches. ...

Anonymous
That's probably part of the issue for you - 15 isn't a LTS version, so it's in EOL mode
Why didn't my polynomial plant grow?
its roots were imaginary
Anonymous
slow clap
@Mr.Xcoder +/¨ sum each of ⊢,¨ each appended to ⍳∘⍴ the indices of the shape
19:25
@Adám ⍳∘⍴ is toooo neat
@Mr.Xcoder Yeah on a vector is pretty nifty. Even J and Jelly don't do that.
0
Q: Simplify this polynomial!

user1997744Mathematical Background A polynomial in the ring C[x] is written as c0 + c1*x + c2*x^2 + ... for complex coefficients c0, c1, and so forth. We define a simplified polynomial as: A polynomial is in simplified form if there are no terms repeating a power of x. For example, x^2 + 1 is in simplifi...

@Adám i. works with shape
   i.2 4
0 1 2 3
4 5 6 7
@FrownyFrog makes indices for an array of that shape:
      ⍳2 4
┌───┬───┬───┬───┐
│1 1│1 2│1 3│1 4│
├───┼───┼───┼───┤
│2 1│2 2│2 3│2 4│
└───┴───┴───┴───┘
yeah I just checked
nice
19:34
@FrownyFrog How do you do the above in J?
convert to base 4 probably
@FrownyFrog Ugh.
yeah...
CMC: Given dimensions of an array, return an array of those dimensions where every element is a list of the coordinates for that element. E.g. [2,4][[[1,1],[1,2],[1,3],[1,4]],[[2,1],[2,2],[2,3],[2,4]]] and [1,2,2][[[[1,1,1],[1,1,2]],[[1,2,1],[1,2,2]]]].
VTC as biased towards APL
19:40
@Mr.Xcoder Ah, c'mon. APL is disqualified. The idea here is to implement a specific feature from a given language.
That was a joke :c
it's biased towards 1-indexing
@Mr.Xcoder Yeah, I figured. Anyway, a qualifying APL solution would have to not use that.
@FrownyFrog 0-indexing is fine.
CMC: Given a binary matrix, output a graph that has it as an adjacency matrix, if possible. I won't provide any test cases.
can I output the graph as an adjacency matrix
19:44
@quartata ... obviously not!
@FrownyFrog Dyalog APL, 12 bytes: ⊢⍴∘↓∘⍉⊢⊤∘⍳×/
so the challenge is actually converting an adjacency matrix to an adjacency list
yeah I guess
<@#:i.
@FrownyFrog Nice.
19:49
Boxing doesn’t do much good here
00:00 - 20:0020:00 - 00:00

« first day (2485 days earlier)      last day (2653 days later) »