« first day (2544 days earlier)      last day (2307 days later) » 
00:00 - 19:0019:00 - 00:00

12:01 AM
@Dennis The 16th, two weeks from the post date, which is right now, since SE uses UTC.
 
Something like 3pm though, which is still a few hours away.
 
16:05 UTC
 
Also, who decides which categories make the cut?
 
top couple iirc
 
12:17 AM
we have so many people offering bounties, we could really pick all the ones with a positive score. otherwise pick the first 10 (like last year) or 11 (number of people offering bounties).
 
I never got around to posting it but I can do 500 rep myself for an even 12
that would include "Novel scoring mechanism", for all but one of the positively scoring catagories
 
12:43 AM
Hmm se still hasn't contaced me for getting my free stuff
 
@Riker I've doubled my offering
 
@Christopher2EZ4RTZ what stuff?
 
@Riker one sec
a box full o' swag containing a T-shirt and stickers and at least some of the following items:

Nalgene water bottles
Notebooks
Sharpies & Other SE/SO branded office supplies
Stickers from various SE sites
Whatever else might be haunting our warehouse
for my +65 meta se answer
 
I'm still waiting for DO to send me my hacktoberfest stuff
 
Anonymous
12:47 AM
@Pavel Really? I got mine mid-November
 
Anonymous
@Christopher2EZ4RTZ DigitalOcean
 
@Mego Yep ._.
 
Anonymous
@Pavel Maybe send them an email/tweet?
 
@Mego I'll do that in a bit. I kinda forgot all about it for a while.
 
12:50 AM
Random question: what is this symbol on a router: <...>
 
Anonymous
Rule of thumb: if someone forgets about you, they're not going to suddenly remember you without some prodding :P
 
(except the dots are vertically centered)
 
Anonymous
What router brand/model?
 
What do you do when your code is broken and you don't know ruby and there are no errors?
 
@Mego Google thingamijg/watchamacallit
(it's not mine)
It's on an Ethernet port, if that helps at all. I'm just trying to find out the name of that symbol
 
12:53 AM
dj can you hop on discord?
 
@Pavel ouch
I got my shirt, it's great
very soft /shrug
@Christopher2EZ4RTZ what is deserving of an RO vote here: codegolf.stackexchange.com/questions/139453/…
 
@Riker woops, re reading it i realize i should remove the RO vote :P
 
I don't think we should miss out on any categories because there wasn't enough rep to go around
 
Anonymous
@DJMcMayhem According to the documentation I found, it's just a generic symbol Google chose for Ethernet
 
o_O
Well that's dumb
 
1:13 AM
@DJMcMayhem well i looked over my changes and cannot find any reason why everything broke
unless...
dammit
turns out i have been running it wrong
 
Request more meta vote, again. +4/-3 is not supermajority...
 
so i found my problem
the interpreter is not running :|
It works :D
CMC: given a string of brackets reverse the string and brackets
i.e ))((}{ gives }{))((
(ruby interested)
 
1:31 AM
@Christopher2EZ4RTZ Bash: rev|tr '[](){}<>' '][)(}{><'
 
@Pavel hmm
trying to figure out how to do this in ruby
I wonder if i can run bash in ruby
 
@Christopher2EZ4RTZ Yes, with backticks
 
soo
a=`rev\tr '[](){}<>' '][)(}{><'
but where do i specify input?
 
@Christopher2EZ4RTZ It'll read it from the console
 
ok this is getting ghetto
but it works
 
1:35 AM
@Christopher2EZ4RTZ Ruby: puts gets.reverse.tr('][)(}{><','[](){}<>')
 
Wow getting people to help me make a horrible language is easy!
 
3
Q: Reconstruct My Matryoshka Dolls

sujeetBackground A matryoshka doll (or Russian nesting doll) is a set of dolls that fit inside of each other. I've accidentally mixed up my collection of matryoshka dolls and I don't remember which one goes inside which. Objective Given a list of unique strings, sort them into nested matryoshka doll...

 
(but in all seriousness thanks so much :D)
source2=source
  source2.reverse.tr('][)(}{><','[](){}<>')
  source+=source2
that just returns the equivalent of source1+=source1
any idea why?
input: )))(((}{ output: )))(((}{)))(((}{
hey muddyfish
 
@Christopher2EZ4RTZ source2=source2.reverse.tr(...)
 
1:40 AM
@Christopher2EZ4RTZ or source2.reverse!.tr!(...)
 
cool
pain-flak lives
 
Or just, source+=source.reverse.tr(...) for the full thing.
 
Shameless plug incoming...
After a month of work (and many more months of planning), Retina 1.0 is finally done. It's now available on TIO. If you're interested you can learn more about it in the changelog and the documentation.
9
Fair warning: the new documentation is massive, but the tripled (!) length is actually an indication of how much more powerful the language is now. I'll get to work on a more digestible tutorial soon, but if anyone has the time and patience to read the documentation, please do let me know if anything is unclear. (Ideally in the Retina room.)
 
wow
you really like regex
 
regex is wonderful and amazing
 
1:47 AM
debateable
(yeah it really is cool)
 
Regular expressions are the jquery of text processing
 
i tried to upvote your comment since it said jquery
 
@Christopher2EZ4RTZ Chat does have upvotes tho
They just happen to be star shaped
 
yeah but can i downvote your comments?
I am not geobits
 
2:00 AM
@Pavel they are great and do all thigns
 
Jon Skeet has over 1 million SO rep!
 
ninja'd by 10+ hours?
:P
 
retina... 1.0??
it's been pre-release all this time?
 
pretty much
 
2:09 AM
it was at 0.8.2 for the past 1.5 years
 
I mean... version numbers are pretty arbitrary. But before 1.0 I basically just added features left and right when they seemed useful and Retina was becoming a bit of a Frankenstein's monster. 1.0 was the first time that I really took a step back, thought about what I want from the language and how I could generalise all of these grafted-on features in a reasonable way and then rewrote the language almost from scratch.
2
Aaaand, it's on TIO! :)
 
Anonymous
Hooray!
 
3:15am... I guess I'll defer taking the language for a spin and updating some of the "catalogue" answers until tomorrow...
 
@MartinEnder go to bed young man
 
2:34 AM
@DJMcMayhem pain-flak is up and running
And I hurt my brain trying to write hello world
 
 
1 hour later…
4:00 AM
@MDXF ... which is what happens with answers written in unpopular languages...
 
 
2 hours later…
5:35 AM
@user202729 Unfortunately that's completely true
 
 
3 hours later…
Anonymous
8:57 AM
People who live in areas where freezes are common, but not common enough to have insulated pipes: how do you avoid going mad from the noise of dripping faucets?
 
9:12 AM
@Mego Place objects under the faucets to lead the water into the drain.
 
@DJMcMayhem 20 languages: 05AB1E BASIC Batch C C# C++ Charcoal CSS dc HTML JavaScript/Node Jelly LOGO Perl Python Retina sed sh/bash SVG vim
 
Anonymous
@Adám Hmm... I'll give that a shot
 
@Mego Even tying a string should be enough.
 
Anonymous
@Adám Using string to wick the water into the drain?
 
@Mego Yes.
 
Anonymous
9:14 AM
That's extremely clever
 
Anonymous
I'll do that in the morning when I won't be able to hide from the dripping as easily
 
9:52 AM
@Christopher2EZ4RTZ Charcoal, 3 bytes: S‖T
 
10:06 AM
@Christopher2EZ4RTZ Dyalog APL, 20 bytes: b[⌽⍞⍳⍨⌽b←'[({<>})]']
 
10:22 AM
how much time should you wait before accepting an answer for a challenge?
 
@ManishKundu I'd wait a week.
 
You don't have to accept an answer, but you can.
 
yeah i think i will wait a week too.
Am I allowed to create other challenges meanwhile?
 
Yes, of course.
(although if no one accept any answer, no one would be able to get the extra topping hat)
 
-2
Q: Number of leap years between two given years(both included)

Subham GhoshIs there a better way to calculate number of leap years between two years. Assuming I have start date and end date.(in python)(codegolf)

 
 
1 hour later…
11:37 AM
@Adám that's what one normally does, no?
 
15 hours ago, by DJMcMayhem
CMP: How many languages are there, where you have at least one PPCG answer in that language? (Versions, major or minor, are not separate. does not count)
 
0
Q: Trying to Learn Hexagony

Josh DI'm trying to wrap my head around the programming language Hexagony. I've looked at a few sample programs and have tried writing a simple program to read input and print Hey [input]!. Here's what I have. , < . . C $ . . { . # . ; . . . # . . 2 ' . . . . # C 3 < . . # . # . . *...

 
@EriktheOutgolfer Question is what "Versions" means.
 
@Adám I don't think "Dyalog" or "NARS2000" can be considered "versions", more like "implementations"
 
@EriktheOutgolfer Now that I re-read it, I'd say you're probably right. I had read it as completely separated from the major or minor part, as in editions, major versions, minor versions.
 
11:41 AM
@user202729 oh...
 
@user202729 well, that's entirely the point of hexagony
> asked Sep 14 '17 at 16:23
 
But the OP is fairly active recently.
(I don't guarantee that the OP still has the problem)
 
well, I can't have an unanswered hexagony question on SO, can I :D
 
12:03 PM
@MartinEnder No, of course not. That's almost as unthinkable as an unanswered or SO question!
 
@Adám heh
 
12:35 PM
One of the more underrated non-code-golf projects by a PPCGer: github.com/Timwi/Generex . Just saved me a whole lot of time.
 
oh cool, I didn't know Timwi had his own regex engine
that looks really neat
 
Timwi actually has 89 repositories, of which 68 are for "ktane" and the other 21 are other wonderful projects
 
1:19 PM
I need to write a tutorial for funky, to make it more accessible
Despite it being powerful and flexible, things like its operators will feel trial and error if their not explained properly
 
1:33 PM
How can I configure wine to use my DLL? I tried to use winecfg, but I don't know how.
Error log:
Unhandled Exception:
System.MissingMethodException: Method
'RT.Util.Serialization.ClassifyOptions.AddTypeOptions' not found.
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException:
Method 'RT.Util.Serialization.ClassifyOptions.AddTypeOptions' not
found.
 
Jusdging from that trace, you mean a .NET assembly rather than a native DLL, right?
 
I'm not sure... Looks like installing RT utils instead will help.
But there isn't any...
 
1:55 PM
Are Python files (use open built in function) buffered by default?
 
what do you mean by buffered?
my PPCG reputation is a rotation of Geobits's reputation :P
 
... for example, when write method is executed, is the content written to disk directly (slow) or stored in RAM (buffer)?
 
oh ok
 
-1
Q: How this folder structure should look like

RxNRezaI can't figure out how should this folder structure should look like. /lib/editor/~/lib/lib/color.php

 
Are we getting more off-topic questions recently, or it has been at that rate all the time?
 
2:00 PM
i think that was my fastest vtc ever lol
5 secs on the timestamp
 
Anonymous
@user202729 There's a parameter for that: docs.python.org/3/library/functions.html#open
 
Anonymous
@user202729 It's pretty common. Actually, for the past few weeks, we've been getting less than usual (from what I've seen)
 
Should I delete the recent main post?
Jan 2 at 5:16, by Dennis
126
Q: Turbocharging the Roomba: solutions for premature deletion

Shog9A couple weeks ago, I asked for help: How can we stop premature deletion? And I got some fantastic responses. A big thanks to everyone who participated in that discussion - you're the reason I don't completely hate Meta Stack Overflow. The big takeaways from that discussion were: Show users t...

 
@user202729 no need to :P
 
Anonymous
@user202729 Beat you to it :P
 
2:05 PM
Too quick...
 
Anonymous
If something is blatantly off-topic with no hope of redemption, there's no harm in casting quick delete votes. Not VTDing is just delaying the inevitable
 
Because issue (1) is solved, for such "blatantly off-topic" question we can just delete it. Correct?
 
Anonymous
Yep
 
Anonymous
Only if there's hope for redemption (like rephrasing a poorly-stated question into a tips question) should you hesitate to VTD
 
CMP: Do you think this deleted question can be well-received on SO?
 
2:08 PM
I doubt it
 
Anonymous
@user202729 No. It shows no research effort. Anyone familiar with C (or who became familiar with C after a bit of searching) would easily understand it.
 
I don't understand th question if it was heavily modified perhaps but I would need to understand what was being asked before I could make any predictions about SO
 
Anonymous
The general answer for "would this question be well-received on SO?" is no. They hate everything over there, with few exceptions.
 
stackoverflow.com/q/16836860 stackoverflow.com/q/7202157 Those questions are of similar states, but get hundreds of upvotes.
(no effort from OP, ask how this could work, end)
 
Anonymous
It's worth noting that both of those questions are quite old. SO culture has gotten much more serious and negative over the years
 
2:12 PM
Hm, that too.
 
In my experience a rather small percentage of the users are negaitve. Most users are rather helpful.
 
@HeebyJeebyMan Only if the question is serious.
Oh hey, the Hexagony SO question has got one more upvote.
"the" ...
Is mono required for dotnet?
 
Anonymous
@user202729 No. In fact. dotnet is from the .NET Core collection, so they're entirely independent
 
I use winetricks to install dotnet, and it complains a lot about mono does not appear to be iinstalled.
 
Anonymous
You shouldn't need winetricks to install .NET Core
 
2:16 PM
Ah yes...
Ok, I'm not sure how to proceed. Hopefully I don't do anything stupid.
 
Anonymous
Undo what you did, install dotnet via your package manager
 
Anonymous
Or build it from source if you have to
 
... then will it work with wine?
 
Anonymous
Maybe?
 
Anonymous
What exactly are you trying to do?
 
2:23 PM
Trying to get something to run under Wine.
 
Anonymous
If you need .NET in wine, just install the .NET runtime
 
why does enumerate take ZERO positional arguments???

https://tio.run/##jVZdb9owFH0mv@ISacJeM0bXdpWo@rCHTZq0h2mrtAeEkCEOeE3iyHbE2LTf3l1fJ0CAllWiSmyfc@63U23cSpdXT2vlVqArWbLY1vNCWat0Oaw2cQLxOuYgLGTjqJcN10Y5yeLKqNIxVVa1YxwuYNAf8JhH0R5PZfQ8l8XMSetmtkbYS3wa@Szcw@QmgZvpHRA1LUwGK5nnepDAYK1Nng6mCUwGS63T@Ub61VxlcjBFjK7dAai/RfU7sH6L6xPQqULmqlAOoZcxf1JFpY2j5SjKjC7ArYwUqSqX0Oy9DusYLPRzIa3dbUSpzGBpRCrZQheFKNMEfBAs9x5rAxSMWVkXCbDgeAIqhCgBHR44RgAknpFGYIB@q4oRx7AFhLcQpvatCQD3Qr2NknkKbJTs6wU0x237qCp095PIrcRXbxdlKpil0JATJhxZSUo9lYGno@dW9ybZ8nm5nkSdcMCZTXjo7VWLk0WVCicOCoT@2ipR/EWYOYChVXE8/Ikes0JUbLEyCSxWcvE4C
oh I'm smart I imported * and that caused ambiguity
 
... using namespace std's analogy in Python.
 
yep :/
 
... all the top 10 servers return error 404.
 
2:40 PM
> I suggess you to use winetricks to install .net framework series.
...
 
@Mego If you need .NET in wine, you should try to use mono and see if it works
 
3:24 PM
I just got a KDE patch that fixed an issue I was having where programs other than my browser couldn't open webpages (e.g. Discord couldn't open the help page in my browser). Also, the only way to download files was through wget or curl, since the normal save-as dialog that KDE provided would crash immediatly.
On the other hand, it broke the keyboard shortcut that let me open my terminal with ctrl-alt-t, so overall I'm dissatisfied with this update.
In fact, I know can't set a keyboard shortcut for konsole at all.
Hmm, Dolphin seems to finally work. Hooray for having a GUI file viewer!
 
Can anyone help me with an arch linux problem?
 
3:44 PM
@user202729 Depends on the problem
 
Ok, every time I suspend the computer, when it wakes up, it freezes and prints a lot of logs to the terminal. I can't type anything that cause it to recognize.
Of course I can't copy it anyway. Some of the contents are:
ata5: SError: {DevExch}
Ext4-fs error (device sda8): ext4-find-entry:1436:inode ????: conm gmain reading directory lblock 0
ata1: exception Emask 0x10 Sact 0x0 Serr 0x4000000 action 0xe frozen
 
@user202729 have you tried booting from a live os and running fsck?
 
I mean, normally the OS is live, but after suspend and reboot it prints those logs repeatedly. I have to force shutdown (hold the power button)
 
@user202729 I mean put a different Linux on a flash drive and boot from the flash drive.
 
Why?
On boot, the system has something about "inode cleaned".
 
3:56 PM
@user202729 To run fsck. If you run fsck on the same system that's currently booted, you'll nuke your hard drive. I don't know if fsck will fix anything but I'm told it's amazing and does all things.
 
...? I don't really understand...? / I don't have any bootable flash drive/etc.
15 hours ago, by user202729
Request more meta vote, again. +4/-3 is not supermajority...
^ Now +6/-4. I'm not sure if I should accept it, or because it's highest upvoted it will be default?
The two others are at +0/-4...
 
@user202729 fsck is filesystem check. It can fix problems related to corrupt system files, but you have to run it from a system other than the one you're repairing.
 
I have no idea how this could help. And of course, I've encoutered situations that require fsck in the past, when Windows 10 messes with the partition.
CMP: What's your main question:meta question ratio?
@user202729 1:3.
 
@user202729 63:13
 
@user202729 6:1
 
4:03 PM
@user202729 1:1
 
73:3
 
CMC: Given a polynomial function (as coefficients' list or a string formula or as a function or some other way), plot a simple area chart for the x and y ranges 0-9 using space and # for > and ≤ the y value. E.g. 0.12x³+x²-1:
     ##
     ##
    ###
    ####
    ####
   #####
   #####
  ######
  #######
  #######
 
@Adám May we take a black-box function as input too?
 
@Mr.Xcoder Yes.
 
is using for cartesian product a bad idea
 
4:13 PM
@totallyhuman No, that makes sense.
 
It depends. If you are planning to use that during a maths contest, then yes, it is a problem. Otherwise, it's ok
 
Ugh, correction: the CMC example is for -0.12x³+x²-1
 
hmm
'cause i can't use ×
(i would've if i could've)
 
@totallyhuman What about ?
 
i currently have that down for list concat but i'm open to suggestions
 
4:16 PM
@totallyhuman What does , do?
 
also look how nice the definition looks:
(⊗)       ∷ [a] → [b] → [(a, b)]
a ⊗ b     = [(x, y) | x ← a, y ← b]
 
@Adám That sounds more like dot-product to me.
 
@Adám on its own, a syntax error
haskell's list comp combined with unicode is readable to anybody familiar with set builder notation
 
Do you support parallel comprehension?
zip as bs = [(a, b) | a <- as | b <- bs]
 
unfortunately i don't think i can add it into something importing
like i can use it in my code
 
4:19 PM
@totallyhuman ?
 
but if somebody imports unihaskell, they won't have access to it
 
1
Q: Visualize Visual Eyes

JordanYou may or may not remember Xeyes, a demo program that came with (and, as far as I know, still comes with) the X window system. Its purpose was to draw a pair of eyes that followed your mouse cursor: Your challenge is to recreate Xeyes with ASCII art. Write a program or function that draws two...

 
As I said before... why did you use [congruence] for ==?
 
GREATER-THAN OVERLAPPING LESS-THAN
haha
@user202729 because i can't use =
 
Just use ==...
 
4:20 PM
0
A: Sandbox for Proposed Challenges

Mr. XcoderCalculate the Schwarzschild radius code-golf physics number The Schwarzschild radius of an object is the radius of the sphere created by collapsing the object until the escape velocity from the surface thereof is equal to the speed of light, thereby forming a black hole. The Schwarzschild rad...

 
How could you overload ::?
The bots are fairly active recently...
 
@user202729 that's there if you want to use it
@user202729 it's part of the UnicodeSyntax extension
can't overload syntactical constructs
 
@totallyhuman so many delicious symbols, so few built-ins…
 
@totallyhuman "squared times"!
 
4:24 PM
i could totally use 🤐 for zip
lol
 
@totallyhuman Shouldn't zip be ?
 
@totallyhuman please do
 
@J.Sallé emojicode.org
 
@Adám oh I'm aware of that, I just think it would be funny to have one emoji function in a language
Also the pun fits great.
 
The emojicode website looks nicer than the websites for the majority of practical languages
 
4:33 PM
@J.Sallé is selfie!
 
@Pavel this is unacceptable
 
0
Q: Are the numbers amicable?

caird coinheringaahingTwo numbers are considered amicable if the proper divisor of the first is the same as the second number, and the second number's proper divisor sum is equal to the first number. Let's define S(x) to be the proper divisor sum of x. 220 and 284 are amicable because S(220) = 284 and S(284) = 200. ...

 
@totallyhuman Although I will admit it's been getting better, php.net, java.com, ruby-lang.org are all unquestionably worse-looking than emojicode.org.
 
@Pavel Wow, thank you for those. And I thought dyalog.com was bad…
@Pavel The Java one looks like one of those phishing emails I get sometimes.
 
@Adám Yep :/
 
4:39 PM
@Adám indeed, that's my favourite squiggle
 
golang.org is also kinda bad
 
Former classmate of mine worked for Oracle for some time. He said they're really touchy about their websites (java.com included) because they think they're "practical and straightforward"
 
oracle.com isn't even that bad
 
@Pavel yeah but I don't think that can be said of any other site of theirs :p
 
@Pavel Overly flashy (see what CSS can do!) but fairly modern look. java.com is just… I don't know what to say!
If I didn't know better, I would have thought it was a spoof or something.
I like haskell.org the most
 
4:47 PM
I like it too
 
Me too.
 
iirc f# is nice
 
5:12 PM
crystal's is nice
 
Neat, DigitalOcean just doubled RAM on droplets for free.
 
@mınxomaτ I assume this is to compete with Linode, which offered exactly identical pricing plans with double the RAM.
 
DO is a better experience for me. I have been a long time linode user, but recently switched.
(before the price reduction)
 
I know Dennis switched TIO to Linode just because of the extra RAM.
 
5:28 PM
@ConorO'Brien yeah, that's pretty good
haskell is nice too but crystal is better
 
5:55 PM
@Riker I think haskell.org looks better than crystal-lang.org. That spinable crystal is completely unnecessary.
 
I didn't notice the crystal, I think the haskell one is a bit cluttered
 
6:19 PM
@cairdcoinheringaahing Congrats on invalidating over 10 answers :)
 
@Mr.Xcoder not with his recent edit?
oh, it was 2 edits behind ignore me
 
the one about a!=b right?
 
Yeah.
That's painfully annoying.
I can't be bothered to fix my answers now :/
 
And now I'm flooded with comments because I was the one to point it out :) – I love this!
 
6:26 PM
this is why sandbox exists cough
 
also everybody is just adding a/=b
 
I'd probably just say "ok fine I'll just ignore the formal definition and let these answers be right"
 
@HyperNeutrino IMO, you can't do anything worse.
 
That would IMO be a terrible choice :P
 
6:28 PM
I mean it's better than making 10+ answers wrong
 
better than what it currently is
 
I'd much rather just abandon the challenge :p
 
why
ok thank you
 
@HyperNeutrino I'm not saying that I don't agree. But at this point, after the revision, that would be awful. If the edit would've been made before invaliding all answers, then that'd be great, indeed!
Oh I see that isn't what you meant.
Sorry @HyperNeutrino!
 
? now i'm just confused :P it's fine
 
6:32 PM
@Mr.Xcoder hahah sorry about that, I guess people (me included) got a little salty about it :p
 
I thought you said that you would allow a==b => truthy now, after the revisions that invalidated all of them were made.
@J.Sallé No, I love it! :-) (I love this!)
 
oh lol that would be bad
 
Hence my reaction :P
 
I see now :P I am no longer confused :P
 
@Mr.Xcoder I only realised the impact of the decision after you pointed out the 6, 6 test case, and it was kinda too late to change it by then :/
 
6:38 PM
CMC: Given an integer, determine whether it has an integer cube root or square root.
Examples: [-27, -8, -1, 0, 1, 4, 8, 9, 16, 27] are all truthy
 
What about 8?
 
I included that. What are you talking about? >_>
I also totally included 25. <_<
 
ಠ_ಠ I cant tell if that was edited in or I'm just blind
 
@DJMcMayhem what's wrong with that? Your challenge is cube root or square root
 
@cairdcoinheringaahing It was edited in
@Poke I forgot to include 25 as a truthy input in my examples.
 
6:41 PM
@DJMcMayhem IntegerQ@#^.5||IntegerQ@#^1/3&
 
@DJMcMayhem Returns an empty/non-empty list, Pyth, 7 bytes: sI#@QP6. Explanation: P6: prime factors of 6, @Q Take the nth root (element-wise), #: keep those, sI: that are invariant over flooring
 
tfw haskell's type system makes this easy CMC ridiculously hard >_>
 
Beware that mine fails for non-positives.
 
But I'm sure that could be shorter
Tips anyone?
 
::thinks::
Yeah x**2 is x*x. That should save you a byte
 
6:49 PM
I don't like (range(abs(n))
Oh yeah, duh
 
lambda n,i=float.is_integer:i(n**.5)or i(n**(1/3))
 
Python , 42 bytes. Try it online!
 
Python supports complex numbers why is -4**.5 == -2.0
 
Nvmd
 
CMC: Beat my 42-byter by at least 3 bytes.
 
6:54 PM
@Pavel Operator precedence
 
@Pavel It gets parsed as -(4**.5)
Ninja’d... Mobile ;-;
 
ಠ_ಠ
Unary minus should have max precedence
 
@totallyhuman same length: lambda n:n**.5==int(n**.5)or n**(1/3)==int(n**1/3)
 
> The power operator binds more tightly than unary operators on its left; it binds less tightly than unary operators on its right
 
6:56 PM
you don't need the fancy func def
 
I'm dum
 
lol no
:D
 
I r dum
I have the last golfed answer and the worst tips lol
 
lol
@Mr.Xcoder it's python?
and it's not a snippet?
ooh I think I see it
 
00:00 - 19:0019:00 - 00:00

« first day (2544 days earlier)      last day (2307 days later) »