Challenge
Given a number width, number height, hours and minutes print the time using the following format style:
------ - ------ ------ - - ------ ------ ------ ------ ------
| | | | | | | | | | | | | |
| | | ------ ------ ------...
This is a small challenge which was given in my workplace,
private static bool Test(bool a, bool b)
{
if ( a == b)
{
return false;
}
if (a)
{
if(b)
{
return true;
}
}
return false;
}
The goal is to make it somehow output t...
Permutation Encoding
Write a program which can encode text to avoid reusing characters, and convert back.
Both normal and encoded forms are restricted to a particular character set: the space character with code point 32, the tilde character ~ with code point 126, and all characters between. T...
someone needs to go back in time and explan to past self that you can only have a maximum two typos or deep-fried punctuation in a post, if you want anyone reading to have any idea what the hell is going on
of course i would never have figured this out via mere conditioning, because this Skinner Planet im trapped in simply decides randomly whether a post is Good or Not Good
i might as well be paid based on atmospheric noise
You will be given 3 integers as input. The inputs may or may not be
different from each other.
You have to output 1 if all three inputs
are different from each other,
and 0 if any input is repeated more
than once
@Adám Two major problems: 1) I didn't know it was a thing 2) I don't know APL and never had enough time to join the sessions when they took place so I gave up :P
Dunno, learning how to program in golf in esolangs just feels much easier for me ¯\_(ツ)_/¯
@Mr.Xcoder 1) I guess I should have advertised it more. (PPCG did have a community ad.) Anyway, now you know for next time. 2) We're in the process of converting my lessons to Jupyter notebook and they will be runnable on TryAPL.org too.
Given an N-dimensional orthogonal (non-ragged) array, and an indication of which dimensions to reverse, return the array but reversed along those dimensions. The indication may be given as a Boolean list of length N or a list of a subset of the first N dimensions indexed from 0 or 1.
Please stat...
I hate hashes because they remind me of hashtags, help me find them in the input
Input
A piece of text
This is an #example text,
#designed for demo #purposes,
#to demonstrate the challenge.#
You may add a optional newline character at the end of the input if your program requires this
You...
I hate hashes because they remind me of hashtags, help me find them in the input
Input
A piece of text
This is an #example text,
#designed for demo #purposes,
#to demonstrate the challenge.#
You may add a optional newline character at the end of the input if your program requires this
You...
@DJMcMayhem Congratulations. May your life together be wonderful.
Apparently being a PPCG mod is conducive to getting married…
@Cowsquack They behave the same. But the equivalent of J's |. is APL's ⊖, not ⌽ (despite the apparent visual similarity). Yeah, J's symbol is a bit misleading for arrays of rank≥2.
Oh I see - you feel split. That was the answer to my literal question, but my overeager brain went ahead and mistranslated it to "you should split such challenges"
Sometimes a challenge openly combines two tasks, like a transformation and its inverse. But there may well be code that can be shared between these, so combining them has merits.
@Downgoat Unicode won't output garbage and echo input to stderr and won't have that EOF error. Plus it lets you use the newest primitives and Unicode text beyond Latin-1.