« first day (1963 days earlier)      last day (2873 days later) » 

5:00 AM
@Bálint I would but I can't due to the thirty day restriction
>_> avocad meme has made me forget how to spell thirty
 
@Upgoat But when will be that over?
 
July somethin
 
@Upgoat It's already July something
 
@Bálint It's still June ;)
 
@Upgoat Wait, but you changed it in May, no?
 
5:03 AM
idk, lemme check
 
@Upgoat :P
 
> Display name may only be changed once every 30 days; you may change again on Jun 26 at 4:41
 
5:33 AM
> Display name may only be changed once every 30 days; you may change again on Jul 8 at 2:32
 
@CᴏɴᴏʀO'Bʀɪᴇɴ batch script is saying "A GOTO was unexpected at this time" D:
> Hi there! I'm DR. Ham Jam
now you're Iron Ham Man?
 
No you're not, you're an imposter.
 
:|
 
¯\_(ツ)_/¯ I don't even know what I am anymore...
Which sounds really depressing out of context.
I just found a sorting algorithm that runs in O(n) time.
1. Iterate through the list. 2. If any item is out of place, destroy that item. 3. Profit ???
 
Dropsort, yeah
 
5:40 AM
Oh... -_-
 
5:57 AM
@DrGreenEggsandIronMan If you know, you will need a sorted array at one point, then sort it at insertion
 
That becomes pretty pricey for big arrays though.
 
@DrGreenEggsandIronMan Better, than sorting it at once
 
Not really. That's essentially the same as insertion sort.
Heapsort, quicksort and mergesort are all faster.
Even at once.
 
@DrGreenEggsandIronMan Insertion sort's complexity is O(N^2), inserting it on the fly is O(Nˇ2/2)
Because N starts at 0, and goes up to N
 
The same is true of insertion sort. On every iteration, you ignore everything above N.
But because Big O is imprecise, O(n^2/2) ~=~ O(n^2)
But O(n * log(n)) is still better.
 
6:46 AM
1
Q: Excludivisible numbers

FatalizeGiven an integer N, output the Nth positive number K with the following property in decimal base: For each digit I at position P of K, the number formed from K by removing the Pth digit (i.e. I) is divisible by I. Example and remarks 324 is such a number: 3 divides 24 2 divides 34 4 divides ...

 
7:07 AM
0
Q: Define a field with 256 elements

anatolygA field in mathematics is a set of numbers, with addition and multiplication operations defined on it, such that they satisfy certain axioms (described in Wikipedia; see also below). A finite field can have pn elements, where p is a prime number, and n is a natural number. In this challenge, let...

 
 
1 hour later…
8:14 AM
@LeakyNun In any case, you can prove that a*a^-1*b = b via the axioms
 
@Sp3000 Any idea yet?
 
For?
 
for the field
 
Golfing it atm
Just taking the algorithm off wiki though, so I'm trying to see if there's better
 
Oh, ok then
@Sp3000 Is it just [0 or 1, a or a+1, b or b+1, ..., g or g+1]?
 
8:23 AM
What's a, b, ... g?
 
arbitrary.
 
Not sure what you're trying to represent there, sorry
 
8:37 AM
@Sp3000 Is it xor-multiply and then xor-mod 283?
 
8:51 AM
0
Q: Calculate the relativistic velocity

MegoIn special relativity, the velocity of a moving object relative to another object that is moving in the opposite direction is given by the formula: In this formula, v and u are the magnitudes of the velocities of the objects, and c is the speed of light (which is approximately 3.0 x 108 m/s, a...

 
9:18 AM
@LeakyNun Er... not quite?
For one thing, there's no mod 283
(well, directly anyway)
Hmm actually I guess it is a mod 283
 
Seriously?
 
Sorry, was just trying to get what you meant by xor-multiply and xor-mod - I'm guessing you mean "xor" in the sense of binary coefficients
 
Yep, that's it.
 
Woop the %256 was completely unnecessary
But yeah, the "xor-mod" is easier to do as you multiply I think, or at least it is in Python
 
Nice.
 
10:10 AM
0
Q: Find operations required to get result

user902383So task is simple, given array of numbers and result, you need to find what operations you need to use on numbers from array , to obtain requested result. Let's make it simple for start, and allow only basic operations such as: addition, subtraction, multiplication and division. Example: Inpu...

 
> I added homework tag, as this task is inspired by homework ages ago on course.
I think he just wanted to make the tag. >_>
People should use the privilege more responsibly. >_>
 
removed
 
10:27 AM
Good, now burninate the tag.
 
@NewMainPosts Can this be solved without bruteforcing?
 
@Bálint -._(._.)_.-
 
I already see myself using a base4 number, and incrementing it
Probably can be solved in less than a hundred bytes that way
 
You might be able to add a few heuristics in, but I doubt it'll be that much more efficient
(also wondering if the challenge might be a potential dupe)
 
@Sp3000 I think it is, what is the chance, that a challenge like this didn't exist
@Sp3000 It was
 
10:34 AM
Btw, @Fatalize much faster algorithm:
delete = lambda s,i:s[:i-1]+s[i:] if i else s[1:]

def e(n):
	s = str(n)
	for i in range(len(s)):
		if s[i] == '0':
			return False
		rest = delete(s,i)
		if rest == '':
			return True
		if s[i] == '2' or s[i] == '6':
			if ord(rest[-1]) % 2 != 0:
				return False
		if s[i] == '3' or s[i] == '6':
			if sum(map(int,rest)) % 3 != 0:
				return False
		if s[i] == '4':
			rest = '0' + rest
			if int(rest[-2:-1]) % 4 != 0:
				return False
		if s[i] == '5':
			if ord(rest[-1]) % 5 != 0:
				return False
 
@LeakyNun For what? :3
 
o_O not sure half of those optimisations are actually any faster
 
@Sp3000 why not?
 
1) I'm not sure about the int->str->int going on, 2) there should be more elifs, 3) I'm fairly sure sum(map(int,rest)) % 3 is slower than int(rest)%3 and similarly for 7 and 9
Also delete doesn't look quite right - should it be s[:i] + s[i+1:]?
 
10:51 AM
@Sp3000 thanks, I'll try to convert to base 10 for everything
 
11:07 AM
Hmm I do think you could probably revamp a few of the shortcuts you have though
 
@Sp3000 Sorry, I don't understand.
 
@LeakyNun How much will 1000000 (1e6) take?
 
@zʏᴀʙiɴ101 Quite long. I'm still optimizing it.
 
Just thinking aloud atm - e.g. for a digit of 2 you would only really need to check the last 2 digits (the last digit in most cases, the second last digit if 2 is the last digit)
 
Yes, which is what I did
 
11:09 AM
Not in the above code at least - you're checking for every 2 digit that appears
 
oh
 
Hi
 
11:24 AM
Okay now, stop raising the signal noise even a small bit further.
 
Hi
 
<_<
 
Hi @RenderSettings :)
I seriously can't allocate 50% of the memory of the host PC to a virtual machine.
I wish to use Urbit, but it needs to find 2 GB of memory.
What to do with 1 GB of physical memory? >_>
(On a virtual machine)
 
sorry. im not alive right now, on account of it being too damn early o' clock.
 
11:27 AM
:[
 
screw eight ams please
 
Okay. :(
 
also, make a swapfile
 
> too damn early o' clock
heh
 
it just needs to map 2gb of sequential memory, it doesn't actually use all of that
 
11:28 AM
@RenderSettings I know that
tears off a fresh *Ubuntu VM clone*
 
11:44 AM
I just realized that /dev/sda5, the Ubuntu VM's swap disk, only has 1022 MB XP
2 MB short of the required 2 GB :(
 
@LeakyNun Nevermind, it was too much microoptimisation for little gain so I gave up :/
 
1
Q: We need a tag for "arithmetic expression building" challenges

Martin EnderThere's a popular type of maths puzzle where you get a list of digits (or numbers in general) and need to insert arithmetic operators in order to reach some target number. Every single time we get a challenge around this topic, I think "this looks so familiar, we must've done this before", but th...

 
Note: I have a HUGE 12.2MB 10k by 20k-pixel Mandlebrot set image that I generated for over a week as my desktop background, currently giving it away, ping me if you're interested
 
12:02 PM
@MitchSchwartz hm, those are metagolf, but you're right that's actually also related
 
12:51 PM
Is it me or is SE really slow?
 
@Fatalize Why not both?
 
@TimmyD Is it me xor is SE really slow?
 
Chat mini-challenge: find fibonacci(n) in O(log(n)) time .
 
@Fatalize It's you.
 
@Fatalize Must be just you, as it seems to be working fine for me. Blame Caching.
 
1:04 PM
Talk about talking (again, but this time from CBC, not Ted): youtube.com/watch?v=_ZBKX-6Gz6A
 
@LeakyNun explicit formula?
 
@flawr If you can do it in infinite accuracy, I'll pass.
 
I can do it exact
 
Do it.
 
isn't it just floor((phi^n)/sqrt(5) + (1/2))
or something
 
1:09 PM
Good luck using that to calculate F(1000000000000)
 
I do not see whats wrong with that?
 
Well, float only has 16 decimal places of accuracy
 
Not if you use an arbitrary precision language/library.
 
@El'endiaStarman Well...
 
And there is an even easier approximatin for large n
 
1:11 PM
Which is?
 
In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence: 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , 144 , … {\displaystyle 1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\;\ldots...
 
is that not what i said
 
@flawr Alright.
 
@El'endiaStarman Or x87 floats. Slightly higher precision (80 bits). Still not abitrary though
 
@Mego Consider using that.
 
1:15 PM
@LeakyNun So what do you need those fibonacci numbers for?=)
 
@flawr Just for fun. I used a base-2 reduction to generate F numbers in O(log(n)) time.
 
but assuming you can calculate phi^n quickly that formula is constant time >.>
 
@Poke Multiplication is O(log(n)) time.
at least in Python.
 
well that's why i made that assumption
 
It's still O(log(n)) time, no matter how fast you can optimize it.
exp(n*ln(phi)), or base-2 reduction, still O(log(n)) time.
def fast_pow(int b, int n):
    if n<0: return 0
    if n==0: return 1
    if n==1: return b
    temp = fast_pow(b,n>>1)
    return temp*temp*[1,b][n%2]
 
1:20 PM
okie
 
1:33 PM
n->([1 1;big"1" 0]^n)[] (Julia)
 
Language design YANI: action for condition for functions.
As in, return 0 for n < 0
^ == v
if n < 0: return 0
 
Ruby's basically that, right? Although it's more like return ... if ...
 
Or action if condition.
 
@Sp3000 any docs/stuffs to prove that it is O(log(n))?
 
Matrix exponentiation is log(n)
 
1:38 PM
@Sp3000 Yes, I know it can be done in log(n). What I am asking is the docs that prove that it is really log(n).
 
:/ doubt most lin alg systems would document stuff like that
 
Never mind then.
 
My favourite C program: pastebin.com/7EkgxMC9
 
Close enough
But I'd be surprised if any proper language didn't implement it in log
 
@Sp3000 Nice.
 
2:00 PM
hey @Upgoat, write a blog post about compilers
 
0
Q: The handshake problem

georgeOkay so I've searched for this question and couldn't find it, so here goes. The handshake problem is the classic problem that for n people in a room, if they all shake hands, what's the total number of handshakes that occur. You code should take an input of any number and output the number of...

 
@Doorknob It was valid.
 
Yeah, I misread the problem and wanted to make sure it worked for non-integers. :P
 
careless to count steps but not count how many operations in each step
 
@Sp3000 Does -0 exist? (ok in some languages there is -0.0 but -0?!)
 
2:14 PM
Well ignoring the fact that chances are nothing will print as -0, most numeric parsers will still allow int("-0") -> 0, say
 
oh, ok
 
we might as well just count the entire calculation as one operation and call it O(1)
 
2:42 PM
@Upgoat Serval.
 
3:04 PM
I tried to disallow -0 as a number, but the problem is that it then it uses - as a unary operator and then 0
 
who the hell decided this was a good idea stackoverflow.com/a/7471843/6045282
 
i thought c++ would let me shoot myself in the foot
 
@Poke that is shooting yourself in the foot
 
@Upgoat I gave you the wrong path to extract the config to
It should be /tf not /tf/cfg
That's why it wasn't doing anything :P
 
3:10 PM
C++ has lots and lots of undefined behavior just so you can do that
 
@Poke huh...
 
@quartata wait wat
ok >_>
 
@Upgoat Yeah, the zip file contains a folder cfg that's supposed to overwrite the cfg folder in tf
I derped and forgot how it was structured
 
\o/ apple release OS 11 now my mac can be even slower
 
3:14 PM
(before anyone complains that there's no golfing languages on the list, here's the entry for APL:)
> You shoot yourself in the foot and then spend all day figuring out how to do it in fewer characters.
 
@NathanMerrill If I want to left shift an integer 32 times, i should be able to do that without having to use a larger datatype
 
ah, but that's not shooting your self in the foot
 
@Poke That's nonsensical.
 
@TimmyD ?
 
Ints are 32-bit, so you can shift-left 0-31 times
 
3:17 PM
How else can I start with 32 1-bits and left shift until i get 0?
 
set it equal to 0 :p
 
yeah but if i'm doing bit logic likely i don't want to be branching when i wouldn't otherwise need to
 
setting equal to 0 isn't branching
 
@NathanMerrill pseudocode if(shift-count = 32) { n = 0 } else { n shift-left shift-count }
 
why is your shift-count ever 32?
 
3:20 PM
This is the more telling answer for what's happening -- stackoverflow.com/a/7403041
 
3:31 PM
13
A: Weapons of Math Instruction

BálintJavascript ES7 49 bytes a=>a.reduce((c,d,e)=>[c**d,c+d,c-d,c*d,c/d][e%5]) Saved 9 bytes thanks to Dom Hastings, saved another 6 thanks to Leaky Nun Uses the new exponentiation operator.

Why Am I getting so many upvotes on this?
 
@NathanMerrill what TimmyD said
 
@Bálint Should we remove some?
 
@flawr No, I just want to know the reason
 
@Poke why is your shift count ever 32?
 
My specific usecase is dealing with subnets and netmasks
 
3:32 PM
@uoɥʇʎPʎzɐɹC <- If you were here 5 hours ago, you know why I do this
 
the loc was final int netmask = 0xFFFFFFFF << (IPV4_ADDRESS_SIZE - oneBits);
 
@Bálint =) people seem to like it, quite often the voting is not really trasparen...
 
40 more rep, and ppcg will be my top community
 
@Poke what happens if you do (1 << (IPV4_ADDRESS_SIZE - oneBits)) -1?
 
3:36 PM
@flawr Newton invented gravity =>
 
does (1 << 32) -1 work?
 
@Bálint huh?
 
Are you familiar with netmasks?
 
oh wait, that's the opposite of what you want
00001111 instead of 11110000
 
haha yeah
 
3:37 PM
@uoɥʇʎPʎzɐɹC This is why we don't ping random people
 
i could use a long, probably
(int)(0x00000000FFFFFFFFL << 32-oneBits)
something like that
 
@Bálint you're right
 
but maybe i'll just use an if statement
it's not an often-traveled branch anyway so maybe it'll be optimized
 
I rewrite my hypercube challenge, so it's more descriptive, see'ya later
22
Q: How to explain atheism in a world where religious miracles are commonplace and spirits visit earth

Bryan McClureThe world is identical to earth except for the above, which only started happening about 40 years ago. In addition to the miracles there are also a group of humans who have started developing telekinesis and mind reading. The miracles and spirits' strength are not limited to one particularly reli...

And a another gem from the worldbuilding SE
 
> Kansas definitely exists, even if there's no rational explanation for it.
O.o
 
3:47 PM
@TimmyD It's beautiful, isn't it?
How do you call these things in english (the four things after the triangle)
 
Looks like someone got a few coordinates wrong. :P
They're hexominoes.
 
hexomino?
 
A hexomino (or 6-omino) is a polyomino of order 6, that is, a polygon in the plane made of 6 equal-sized squares connected edge-to-edge. The name of this type of figure is formed with the prefix hex(a)-. When rotations and reflections are not considered to be distinct shapes, there are 35 different Free hexominoes. When reflections are considered distinct, there are 60 one-sided hexominoes. When rotations are also considered distinct, there are 216 fixed hexominoes. == Symmetry == The figure shows all possible free hexominoes, coloured according to their symmetry groups: 20 hexominoes (coloured...
 
No, the piece of paper sheet you can make a cube out of
 
Cube nets.
 
3:53 PM
...
I could have think of that
 
There's a section on that Wikipedia page that briefly mentions and shows each of the 11 nets for the cube.
 
@El'endiaStarman How about development, would that fit too?
 
@flawr I tried but I can't figure out what you're talking about.
Are you punning on something?
 
No, is was asking about anothe rterm for "cube nets".
Or a more general term if you do the same for other solids
 
Well, "nets" is the general term.
 
3:57 PM
0
A: We need a tag for "arithmetic expression building" challenges

BálintI think arithmetic-expression-building-challenge would be a pretty good choice. On a more serious note, arithmetic-permutation would be good.

 
@TimmyD I like that challenge BTW, but mine won't be about nets, I only used it for explanatory purposes.
 
I'm trying to find a Mathematica post that Martin either linked/wrote over on Math.SE
 
@El'endiaStarman In german (so I believe) there is the term Abwicklung which refers to those kinds of nets, but also the "nets" of e.g. curved solids.
 
@flawr Interesting.
 
4:01 PM
26
Q: Faces and NetFaces relation in polyhedron

Martin EnderI'm trying to generate some plots of polyhedra with coloured faces. To determine the colours, I require the adjacency information of the faces. For the 3D plot this works really well. Say I want to colour the neighbours of a given face: adjacency = Graph[UndirectedEdge @@@ PolyhedronData["Icosah...

 
@flawr Oh, TIL "develop" has a math meaning.
 
I just guessed, as "abwicklung" or "entwicklung" can be translated as "development" in totally different contexts=)
Never though of that: Developable surfaces are (obviously) extensively used in ship construction
 
0
Q: Three 'First Post' reviews already reviewed

NoOneIsHereTitle says it all. I just reviewed 3 items that already had a "Welcome to PPCG" comment. Since 2 different people had reviewed them, I assumed that they hadn't forgot to click, "I'm done".

 
4:18 PM
@flawr Huh, indeed. Of course they'd be useful there.
 
One more to reopen this question --
6
Q: Simplify a Date

jmasterxThis is similar to simplifying fractions, but with Dates! The input of your program must be of the form mm/dd For example 3/4 //March 4 12/15 //December 15 1/1 // January 1 We assume that the input will be valid such that the months have these numbers of days in them: January 31 February 28 ...

 
ask and ye shall receive
 
@Quill okay, but like what part? Making them? Workings of them?
 
all, you could do a multi post series
I would say briefly describe all of the components, then do one for each of the components
 
er mods: If a challenge scoring mechanism gets changed (like a bonus removed), is it ok to edit existing answers with the updated score?
actually, this sounds like a good meta post
 
4:30 PM
Is there a tool, to make matrix images easily?
 
@NathanMerrill Has there even been a consensus yet? I don't think so, just leave a comment, because what if the user's answer was optimized for the bonus
 
TIL -- PowerShell [char] casting accepts integers >127 and provided that your console font supports those code points, will happily output the resultant character.
 
*mathermatical matrix
 
@Bálint like TeX?
 
@Upgoat Is there a good online tex compiler?
 
4:31 PM
what's wrong with installing a tex app (yes there is i think)
 
sciweavers
mathjax
 
@Upgoat I don't have that much time
 
@Bálint I think you should just type it into math.SE and take a screenshot
or use Grapher app (if you're on mac)
 
@Upgoat I just found a good one without signup
 
4:32 PM
@Bálint oh, cool. link?
 
@Quill okay
lemme find a wordpress plugin that lets me do that
 
oh haskell, why are you so difficult???
 
@PhiNotPi what series plugin do you use on your blog?
 
4:38 PM
@Upgoat This one's better
 
Chat mini challenge: Given a string K, output each character K with N leading spaces, where N is the index of K in the string. Example:
asdf =>
a
 s
  d
   f
 
@CᴏɴᴏʀO'Bʀɪᴇɴ CJam, 9: leeSf.*N*
 
@CᴏɴᴏʀO'Bʀɪᴇɴ PowerShell, 36 bytes -- param($n)0..$n.length|%{" "*$_+$n[$_]}
 
J, 9 bytes: (' ',])/\
 
4:40 PM
@PhiNotPi cool, thanks
 
@PhiNotPi Why didn't anyone rate the compatability?
 
PowerShell, 31 bytes -- [char[]]$args[0]|%{" "*$i+++$_}
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Retina, 10 assuming alphanumeric input: retina.tryitonline.net/#code=XEIKwrYkLmAkKiA&input=YXNkZg
 
I've never done three + in a row before, that's cool.
 
Just register or log in, find out the WP version and plugin version, and vote.
 
4:49 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Can the output be like ['t', ' e', ' s', ' t']?
If so then Pyth 7 .e+*dkb
If not Pyth 8 bytes j.e+*dkb
 
nvm 7 byte is okay
 
All right?
 
++++++++[->++++>+<<]>>++<<,[<[-<+>>>.<<]<[->+<]>+>.>>.<<,]
 
Better layout: ++++++++[->++++<<+>]<++>,[>>[->+<<.>]>+[-<+>]<<<.<.>,]
(probably one of those rare BF-beats-Java moments?)
 
5:03 PM
we need a java golfer in her right now
*here
<_<
 
You don't want to see it
 
Of course I don't want to C it. It has no class
:P
 
String f(char[] c){String r="";for(int i=0;i<c.length;i++){for(int n=0;n<i;n++){r+=" ";}r+=c[i]+"\n";}return r;}
I hope the trailing newline is OK
 
112 bytes
 
5:19 PM
@Sp3000 yes, it is
 
Java has no string multiplication so
 
I'd pull a primo for the initial constant building, but I dunno how shrugs
 
I tried it with just printing the spaces out and printing c[i] with a newline but it's longer
The char[] instead of a String shaves a lot of bytes off though
 
surely it has a library for string mult?
 
no
 
5:26 PM
Dunno if this is valid in Java
Isnt
 
@quartata remove the space between char[] and c
And also, you could create a lambda
 
@quartata slightly better Pyth: j+V*R;l
 
5:52 PM
How can I make an image smaller in an answer?
 
Meh:
String f(char[]c){String o="";int i=0,j;for(;i<c.length;o+=c[i++]+"\n")for(j=0;j<i;j++)o+=' ';return o;}
Mainly just killing braces and moving stuff around from quartata's.
 
@Bigtoes meh
c->{String o="";int i=0,j;for(;i<c.length;o+=c[i++]+"\n")for(j=0;j<i;j++)o+=' ';return o;}
 
There's really not any better way to do it I can think of though.
Yes, lambdas work for cheap gain, as usual. I don't use them for java golfing though.
 
@Bálint use img tag
Then specify with and or height
 
@Bigtoes "Cheap gain" is almost 15 byte
 
5:55 PM
C# would be pretty good here, but I'm too lazy
 
@Bálint I mean "cheap" as in shady, not insignificant.
All it does is move the function signature to a different part of the program imo.
 
Javascript is awesome here
 
@Chatgoat Where are you?
 
c=>o="",eval(`for(i=0;i<c.length;o+=c[i++]+"\n";o)for(j=0;j<i;j++)o+=' ';`)
And could be even shorter, if I would care to change for-s to map-s
@Upgoat How can I do that?
 
@Bálint for(j=0;j<i;j++)o+=' ';, why not use .repeat?
 
6:03 PM
@mınxomaτ Again, I couldn't bother
If I want to, I could bring it down to 20-25
@Upgoat Nvm
 
@wizzwizz4 Where are you? :/
 
6:20 PM
Strange, I posted a sandbox post 2 minutes ago and it didn't announce it
 
@Bálint The feed only runs like every 15-20 minutes
 
another one of those: youtube.com/watch?v=A5jn4yamjec
 
1
A: Sandbox for Proposed Challenges

BálintRotate a hypercube graphical-output geometry math ascii-art Introduction A hypercube/tesseract is the 4 dimensional equivalent of a normal cube. It's made by taking a cube net, extending it to the 3rd dimension, then – using the 4th dimension – folding it into a hypercube. It's basically a cub...

 
6:38 PM
Chat mini-challenge -- given an ASCII string, output the product of each of it's char-codes' digit-sums. ... For example, for input "Foo" (ASCII 70, 111, 111), output 63 because [(7+0)*(1+1+1)*(1+1+1)]
PowerShell v2+, 62 bytes -- ([char[]]$args[0]|%{[char[]]"$(+$_)"-join'+'|iex})-join'*'|iex
 
0
Q: What causes an edit to deviate from the original intent of the post?

dorukayhanAfter seeing that this edit suggestion got rejected because it "deviates from the original intent of the post", I realized that I have no idea why or how an edit could change the sense a post makes. What causes edits to do so on PPCG?

 
Java, 99 bytes -- `int a(char[]a){int s=1;for(int b:a){int t=0;for(int c:(""+b).toCharArray())t+=c-48;s*=t;}return s;}`

:s ?
probably could be golfed more
proud of my smiley face in there c:
 

« first day (1963 days earlier)      last day (2873 days later) »