@user it's also fun when you get a message saying your bank account has been locked, but you don't actually have an account with the bank they are claiming to be
Does anyone know if there's an official meta post stating that "Competition in code golf is between solutions in the same language, not across different languages"? I'm seeing this idea referenced everywhere, but I'm not finding a canonical post about it.
@emanresuA I think the challenge looks fine to post (though I can't predict whether it will be interesting to solve). I would say that the title doesn't quite match the challenge: the challenge is about counting the number of occurrences, whereas "find" to me sounds like returning the location of an occurrence.
Pascal's triangle is a triangular diagram where the values of two numbers added together produce the one below them.
This is the start of it:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
You can see that the outside is all 1s, and each number is the sum of the two above it. This continues forever.
Yo...
@pVCaecidiosporeadduced I've thought from time to time about implementing tinylisp in C. The main reason I haven't done it is because I'm not sure what's the best way to implement unbounded integers in C, and I've never gotten around to researching the question.
Welcome to Code Golf! There's a lot of byte saves possible here, like removing whitespace and shortening variable names (like changing word to w). I'd recommend checking out our Tips for Golfing in JavaScript for more! — Redwolf Programs37 mins ago
@RedwolfPrograms except for the fact it ain't code golf :p
Given a permutation of the alphabet and an input string, encrypt the input string by replacing all characters with the one's you've been given
[hnvwyajzpuetroifqkxmblgcsd], "Hello, World!" -> "Zytti, Giktw!"
As [abcdefghijklmnopqrstuvwxyz] has been mapped to [hnvwyajzpuetroifqkxmblgcsd]
IO
Input...
@user I had to drive around the town where I've since moved to, performing such tasks as emergency stop, reversing around a corner (examiner chose a hill, which was annoying), and changing the direction of the vehicle in the road (typically by turning full lock right, reversing full lock left, then driving away, but you're allowed to make extra turns), followed by a quick quiz on the highway code
Hey all. I'm sorry for disappearing on you and for taking bad care of TIO lately. I'll try to explain what's been happening, although it's not easy for me to talk about this...
You heavy? Drop down now!
This was inspired by [Apply gravity to this matrix][1]
Your challenge is to input a matrix with non-negative one-digit integers and drop down the 1's down 1 column, the 2's down 2 columns, the 3's down 3 columns, and so on. Once a number has been moved down and there is ...
The question is of the list [] which of the following: [] has no valid partitions. [] has 1 partition dividing it in to zero parts. [] has 1 partition which is just the original list.
I'd think there's probably very few times you'd want to partition an empty array and return something other than an empty array after doing any mapping/filtering of that
I don't understand the first one (even if that's how it is in math), perhaps others might find it counterintuitive too?
If you're trying to recursively find partitions of a list for whatever reason, the second might be annoying because it'd never terminate unless you added a check for an empty list yourself
@RedwolfPrograms I've gotta agree here, although it really depends on what partition is usually used for
@RedwolfPrograms Making a golfing language involves tough choices. Tacit or stack based? Zero or one based indexing? Vectorize xyz or don't? I believe moving that sort of stuff into flags is just taking the lazy route (and still saves bytes in some cases, making it cheaty as well).
Oh god I hate how editing a message pings the author again, especially when the author is the person being pinged and also you
Paper craft is a collection of crafts using paper or card as the primary artistic medium for the creation of two or three-dimensional objects. Paper and card stock lend themselves to a wide range of techniques and can be folded, curved, bent, cut, glued, molded, stitched, or layered. Papermaking by hand is also a paper craft.
Paper crafts are known in most societies that use paper, with certain kinds of crafts being particularly associated with specific countries or cultures. In Caribbean countries paper craft is unique to Caribbean culture which reflect the importance of native animals in life...
Is it just me or are there way more blue and green identicons than any other color?
Oh, and grayscale
Like if I scroll through the top few pages of users, there's a couple red or yellow ones, some purple, but there's green and blue (and greenish blue and black) everywhere
I thought to myself once "Hmm, is it just me, or do most people these days have only two eyes?" and then I started seeing two-eyed people everywhere. But obviously that isn't true, as was confirmed by a survey showing that most people have four eyes
@pxeger it iz in wired langvej and it iz smol so it gud obviuslee
@user I'd close as a dupe of the first (but can't because it doesn't have any accepted/upvoted answers), so I've closed it as a dupe of codegolf.stackexchange.com/q/77899