In prefix notation, the operator comes before the arguments, so you can kind of imagine that the operator calls next() which is recursively called. In infix notation, the operator goes between the arguments, so you can imagine it simply as a parse tree. In postfix notation, the operator comes aft...
I tried to implement equal method that relays on equality of properties on inner objects.
I would like to write compact check for equality that takes in account null value to avoid NullPointerException.
Naive implementation is:
if (this.prop == null && that.prop != null)
return false;
if ...
ಠ_ಠ I want to upvote the solutions for the OEIS question that have no votes, but NieDzejkob has posted so many, I'm afraid that it'll be seen as serial voting :P
OK but do you have a means of communication that will get a response within the next ice age is more what I meant
Alex set up the permissions on our Nineteenth Byte Steam group wrong, he made it so that only the owner can accept group invites rather than owner + officers (i.e including me)
This was like a year ago and no one noticed until now for some reason
If you could get his attention we'd really appreciate it
@quartata Short of showing up on his door step, I can't guarantee a response time. Ping is all I got. Iirc he publicly list his email address somewhere.
Measuring a pile of logs
code-golf array-manipulation
Introduction
This is a log of length 5:
#####
I want to pile a bunch of these logs on top of each other.
How I do this is that I slide a new log onto the topmost one from the right, and stop sliding when their left or right ends align ...