> Now, after getting that list, add &# to it , but only if those two characters were not already in the list, to avoid repetition. If they are already in the list, then keep them there.
A Single Unicode Character code-golf
Your task is to, take an input, of a single unicode character (eg:, the lowercase letter "a", or any other unicode character)
For this unicode character, grab the unicode representation of it (in the earlier example of the lowercase letter "a", that's U+0061...
@TùxCräftîñg Sometimes, but not always. It's usually best to clarify this. (Also, & and # are usually known as symbols, which may or may not be included in "characters".)
@ASCII-only I merged another PR first (it was older, and your indentation regex still didn't work), and now there are conflicts. I tried a manual merge, but that just broke everything. :(
Olympic vine-swingers perform their routines in standard trees. In particular, Standard Tree n has vertices for 0 up through n-1 and edges linking each nonzero vertex a to the vertex n % a below it. So, for example, Standard Tree 5 looks like this:
3
|
2 4
\ /
1
|
0
because the rema...
@flawr Oh man that's so friggin' cool. I've seen the wire-person and bush examples before, but the rest was new. And wow, so many potential applications...
I expect that sooner or later, someone is going to combine this with 3D-reconstruction-from-multiple-angles techniques to produce a 3D model that you can interact with, just using data from real-world objects.
And then this will be combined with VR, eventually...
Introduction
It's 2600 BC and people are building pyramids now. They already made the basis of the pyramid but don't know how to continue. So, they called you for help.
The rules of making a pyramid is quite simple. For the layer above the previous layer, all you need to do is follow this step-...
@ColdGolf General formatting improvements, better presentation and flow of ideas, maybe change the wording in a few places. I'll get started on it now.
xnor does raise a good point, which occurred to me earlier.
Is there any motivation for this sequence of steps? I find it arbitrary and kind-of bland. Many languages will just do it as a sequence of built ins. — xnor55 secs ago
Write code that terminates in a day, keeps printing/displaying "a" and that can be mathematically verified without having to wait a day. Shortest code, in bytes, wins.
@LeakyNun Yes, that's because it defaults to UTF-8. Right now, there are only 1-byte-per-char and UTF-8 options. Since Retina is capable of handling all Unicode characters, UTF-8 seems like the more reasonable choice.
Red country hates Blue country. A lot. You work for Red country.
Secretly, you're a double agent, though.
Red country's top programmers check every little bit of code, but don't bother to run it.
Write code that looks like it prints/displays the string "2+2=4", while, in reality, it displays ...
Dennis the Menace is a daily syndicated newspaper comic strip originally created, written, and illustrated by Hank Ketcham. It debuted on March 12, 1951, in 16 newspapers and was originally distributed by Post-Hall Syndicate. It is now written and drawn by Ketcham's former assistants, Marcus Hamilton and Ron Ferdinand, and distributed to at least 1,000 newspapers in 48 countries and in 19 languages by King Features Syndicate. The comic strip usually runs for a single panel on weekdays and a full strip on Sundays.
The comic strip became so successful that it was adapted to other popular medi...
@Dennis oh wow, ninja'd me to that joke by a few years
@ColdGolf I don't mean to step on anyone's toes, but you really should consider giving the sandbox a shot. If too many of your challenges are downvoted, closed and/or deleted, the system will apply a question ban. The ban is automatic and cannot be lifted by moderators.
Red country hates Blue country. A lot. You work for Red country.
Secretly, you're a double agent, though.
Red country's top programmers check every little bit of code, but don't bother to run it.
Write code that looks like it prints/displays the string "2+2=4", while, in reality, it displays ...
@ColdGolf Not sure what you're referring to, but downvoting, closing and deleting are essential parts of the SE network that help us keep certain quality standards. Writing a good challenge is non-trivial, especially because there are a lot of rules and guidelines that the community has established. For example, your latest challenge wouldn't have been closed a year ago, but it is deemed off topic at this point.
Rather than trying to familiarize yourself with all the rules, you can post your challenge in the sandbox. More experienced members of the community will help you to make sure that the challenge is clear, on topic, and not a duplicate of another challenge before posting it on the main site. With a few exceptions, even our most experienced challenge writers make use of the sandbox. It always helps to have an extra couple of eyes.
Note that underhanded is not a winning criterion, unlike popularity-contest; it's more like math in that it's a specification of the content of the challenge. Underhanded challenges can be code golfs or popularity contests or whatever. I don't think the issue is that it's difficult to find a obje...
Enterprise Quality Code!
At Pretty Good consultants there is a focus on writing "quality" verbose code that is sufficiently engineered. Your boss has decided to test you on your skills.
Consider the set of all programming languages in existence before the posting of this challenge. For this cha...
Slimes are cube shaped enemies in Minecraft that break into multiple smaller versions of themselves when killed. For the purposes of this challenge we'll depict them as an 8×8 pixel image with 3 colors:
← True 8×8 version.
The precise RGB colors are:
0, 0, 0 for the eyes and mouth
110, 170...