How many partitions contain all perfect squares? code-golf mathematics number
Given a number, determine how many ways the number can be partitioned such that each partition only contains square numbers.
This was originally a CMC, but the only answer was my quite long Jelly answer, so hopefully ...
Users with 3,500 rep (or 15,000 if when we get a site-design) can protect challenges. This makes it so that users who have not earned 10 rep on the site can not answer.
As a user with this privilege, I have no idea when it would be appropriate to use. This is because the idea of "protecting ques...
Concept
Write a program that outputs code in its programming language. That code, when executed, must output the original program.
Rules
Since this is a cheating quine, you can read the original source code.
First output program must be in the same language as the original program.
You may no...
anyway, would anyone here be interested in a new koth, with its own language (a little bit like that simplified core war one in that it has its own language)?
disclaimer: I don't actually have any koth things right now
> ProtonMail accounts and DigitalOcean credits will be distributed by the companies themselves, so we cannot provide an exact estimate for when these prizes will be given to you. Still, you may expect them within the next few weeks.
Lorum Ipsum Generator
popularity-constest string
Lorum Ipsum is placeholder text used when preparing layout without wanted to have content already filled.
One of it's key features over using some arbitrary text is that it is nonsense.
It isn't even valid latin (though it is close).
This preven...
It is an interesting premise but I don't know if it is really right for the site
I will admit that I am highly critical of pop-cons and think they should be banished from the site, but I don't feel like this is a programming puzzle.
I don't know, might just be me. I certainly wouldn't downvote or VTC if I saw it on main.
Though there are other (nonlanguage modelling) solutions that might work for mine. Take the source text take each work, and consider randomly swapping vowel for vowel, consonant for random consonant. Ignoring the first and last letter of each word.
When dealing with list input in C, as in this question, is it acceptable to add extra argument to indicate the length of the list?
It does give advantages because other language needs functions like len(M), but I cannot figure out a simple way to represent such a list in C.
If it is not accepta...
Number Named Regex Groups
code-golfstring
Using named matching groups is often easier to understand than numbering groups but takes up more bytes. Given a regular expression as specified below, your program or function must convert named groups to numbered groups.
Task
These specifications ...
In most cases, \z is better, but if you're validating user input from a form for example, \Z is more useful because an extra newline shouldn't make any difference.
Given a positive integer, find its smallest positive integer multiple which is a run of 9 followed by an optional run of 0. In other words, find its smallest positive integer multiple which is matched by the regex /^9+0*$/.
For example, if the given positive integer is 2, then return 90, since 9...
@LeakyNun Would you mind me using the just implemented match function for your challenge? Or should I stick to functionality implemented prior to the creation of the challenge?
@Downgoat Mint is entirely built from Ubuntu and uses the Ubuntu repositories, it's basically guaranteed to be fully compatible with Ubuntu software and packages. It's considered one of the easiest distros to set up and use, however it's biggest criticism is its security, which is worse than on many other popular distros.
Generate a Chernoff face for two variables.
The input is two integers between 0 and 10, they can be imported as a list or string.
The output is the figure. The figure should be in the tradition and style of Chernoff faces. It's up to the golfer to find two suitable expressions of the variable...