Undress a string
We already now how to strip a string from its spaces.
However, as proper gentlemen, we should rather undress it.
Undressing a string is the same as stripping it, only more delicate. Instead of removing all leading and trailing spaces at once, we remove them one by one. We al...
Inspired by this question.
Given an integer n, create an n-dimensional list of "length" n in every dimension, where every element is n.
Rules:
If your language has a built-in that does this, you may use this (good luck)
Input may be a string or number
Output must be a clearly delimited list o...
@Mayube You didn't tell me all of them. You withheld the work urls. Of course I can't tell then. Notice that dyalog and github is enough to identify me.
array access segfault on Google [nothing] TNB Python 2 math docs Lambda calculus on Wikipedia Facebook Charcoal Github mpmath Charcoal Cloud9 Google Code Jam scoreboard bookmarklet Christopher's Khan Academy profile Uni blackboard website for one of my courses (idk which) mpmath y-cruncher formulas page oeis A130519 [nothing]
Quality Checklist for Google Play Games Services | Play Games Services | Google Developers [nothing] [nothing] Topololyglot TIO invalid back reference using grep on Unix and Linux SE vivaldi://newtab Facebook Reverse Polish Sausage on XKCD y-cruncher - Formulas zkl
The Original Number (II)
This challenge is essentially identical to this one with just one difference: it is now allowed to shuffle letters anywhere in the string.
Scenario
John has an important number, and he doesn't want others to see it.
He decided to encrypt the number, using t...
@ASCII-only when I make it so cQuents can actually do empty expressions you can take off the 0 at the end
@ASCII-only what do you mean you can do Unicode chars in Charcoal... I dare you to (locally) do that. It might work on TIO, but then it's not the real byte count
Unicode works by making half of the bytes the first part of a multibyte char
you can't have all of Unicode and 256 single bytes
"First they came..." is a poem by Martin Niemöller:
First they came for the Socialists, and I did not speak out-
Because I was not a Socialist.
Then they came for the Trade Unionists, and I did not speak out-
Because I was not a Trade Unionist.
Then they came for the Jews, and I did not speak ...
Here is the sequence I'm talking about:
{1, 4, 5, 9, 10, 11, 16, 17, 18, 19, 25, 26, 27...}
Starting from 1, keep 1, drop the next 2, keep the next 2, drop 3, keep 3 and so on. Yes, it's on OEIS, too!
The Challenge
Given an integer n>0, find the nth term of the above sequence
Test Cases
I...
First they came has been dupe-hammered of We're no strangers to code golf, you know the rules, and so do I (the rickroll), and reopened within 14 minutes.
The question is: Is it a dupe?
Note that voting on this question does not signify your opinion on the dup status. Please vote on answers.
That seems like a good metric. Very easy to mistake a challenge that has one immediately obvious solution for a trivial challenge though, if it's not the only decent one, and potential improvements are not apparent to most people.
First they came has been dupe-hammered of We're no strangers to code golf, you know the rules, and so do I (the rickroll), and reopened within 14 minutes.
The question is: Is it a dupe?
Note that voting on this question does not signify your opinion on the dup status. Please vote on answers.
This challenge is a simple ASCII-art challenge inspired by the solar eclipse happening today. Given an input 0 <= n <= 4, output the corresponding stage of the eclipse described below:
n=0:
*****
** **
* *
* *
** **
*******
n=1:
*****
** *****
* *******
* ...
@Sherlock9 I played trough Project Ozone 2 kappa mode with a friend ~3 months ago, got to pretty much end-game as we got the necessary stuff to be able to farm any block. And then I got bored :p
I had a vanilla world going with an Iron titan, mob farm, villager hall, 2 mob spawner farms, and various other auto farms.... and 29 diamond blocks.... then my hard drive died and couldn't be recovered :(
@Sherlock9 can't remember what it really was as I played it a while ago, but yeah, it was fun
Anonymous
Infinity Evolved is all of the FTB mods, but with their recipes balanced so that no mods are optional for progression, and progression is slower and harder.
ooh yeah.. in PO2 we got a nether star generator that generated like 500 nether stars per second. And it still wasn't enough :p
Anonymous
On expert mode, that is. Expert mode also adds extremely hard recipes for items that are normally creative-mode only, and disables stuff that is gamebreakingly good (like Magmatic Generators).
Anonymous
In the SF3 world that my wife and I have, our primary source of Nether Stars so far has been Chance Cubes
@Sherlock9 huh, strange. How much ram have you allocated to it in the FTB options? Does it start loading (i.e. the MC window shows up) or does it fail before that?
@Mego should that be a problem? Java uses a VM and modpacks have worked for me before with java 7 and 8
Anonymous
@dzaima 32-bit Java has the 2 GB limit, and so some smart, RAM-intensive applications fail before even trying to allocate memory if they detect 32-bit Java