All Questions
Tagged with source-layout string
35 questions
23
votes
10
answers
2k
views
I (rev)?(pal)? the source code, you (rev)?(pal)? the input!
Just because the reverse and palindrome were not too challenging individually :)
Write a program (full program or function) that satisfies the following: given a string input,
the program as-is ...
28
votes
28
answers
4k
views
What's the Missing Code? (Cops)
Cops' Challenge
Robbers' challenge here.
It has now been four days since the challenge was posted so all new answers should be marked as non-competing in the title. These answers can still be cracked ...
13
votes
10
answers
1k
views
From code to golf (Cops' thread)
This is a cops-and-robbers challenge, the robbers' thread is here
You can change the word code into golf by changing a letter at ...
10
votes
5
answers
540
views
The Most Palindromy Code to Calculate Palindromy Numbers
The string
abaaba
Is a palindrome, meaning it doesn't change when it's reversed. However we can split it in half to make two palindromes
...
27
votes
7
answers
2k
views
Happy Birthday... caird coinheringaahing? ChartZ Belatedly?
When this question was posted, it was caird coinheringaahing's birthday! (source: 1, 2, 3, 4) (It was also World Emoji Day.)
As a bit of some CGCC lore, caird's name came from a Jelly answer by Dennis ...
10
votes
44
answers
3k
views
Which character to change (Robbers)
Cops thread
Robbers, your task is to crack a cops answer. Reveal the character that should be changed and what it should be changed to too.
Please notify the cop if you cracked their challenge.
The ...
20
votes
49
answers
4k
views
Which character to change (Cops)
Robbers Thread
Cops, your task is to chose a program that prints a string (you can choose).
Although, if you change 1 character in your code, it should print another string.
But there's a twist: You ...
4
votes
6
answers
634
views
I Rot-13 the source code, you Rot-19 the output!
This is alternate of a rip-off of a rip-off of a rip-off of a rip-off of a rip-off of a rip-off. Go upvote those!
Your task, if you accept it, is to write a program/function that outputs/returns its ...
19
votes
25
answers
3k
views
I palindrome the source code, you palindrome the input!
This is a rip-off of a rip-off of a rip-off of a rip-off of a rip-off. Go upvote those!
Your task, if you accept it, is to write a program/function that outputs/returns its input/args. The tricky ...
-14
votes
15
answers
428
views
Reverse source code and double the input
For today's challenge you have to take an input, and if your source code is reversed, then the input should be printed doubled.
Let's say your source code is ABC ...
30
votes
38
answers
5k
views
I uppercase the source code, you reverse the input!
It's one of these again :D
Your task, if you wish to accept it, is to write a program/function (without any uppercase letters) that outputs/returns its string input/argument. The tricky part is that ...
13
votes
3
answers
651
views
Writing erasable code
My phone number (which I will not be sharing here) has a neat property where there is a two digit number, which when iteratively removed from my phone number will eventually remove all the digits. ...
26
votes
10
answers
4k
views
Your code has an uncanny mirror twin…
Write two programs, each taking a string s and a number n ≥ 0, such that:
The first program prints ...
28
votes
24
answers
7k
views
I shift the source code, you shift the input!
Sandbox
A spin-off of a rip-off of a rip-off of a rip-off of a rip-off. Go upvote those!
Your task, if you accept it, is to write a program/function that outputs/returns its input/argument. The ...
11
votes
7
answers
535
views
A Change in Perspective
In this challenge you will write a piece of text which when viewed from two different angles will create two different programs.
Your string as viewed from above must take a string containing only ...