TransWikia.com
  1. All Categories
  2. Code Golf

Code Golf : Recent Questions and Answers (Page 11)

Find answers to your questions about Code Golf or help others by answering their Code Golf questions.

What's my PPCG ID?

ChallengeGiven the name of a PPCG member, output their PPCG ID number. If the user does not exist, you may report an error or return any non-positive number. If there...

Asked on 12/03/2020 by musicman523

8 answer

The bouncing sequence

Let us define a sequence. We will say that $a(n)$ is the smallest number, $x$, that has the following properties:$x$ and $n$ are co-prime (they...

Asked on 11/28/2020 by Wheat Wizard

8 answer

Zero sum covers

IntroductionConsider a nonempty list L of integers.A zero-sum slice of L is a contiguous subsequence of L whose sum equals 0.For example, [1, -3, 2] is a zero-sum...

Asked on 11/10/2020 by Zgarb

16 answer

Swapping "Good" and "Bad"

Challenge Description: Write a program that asks the user for input. The user will enter Good or Bad. You do not have to support any other input. If the user...

Asked on 10/15/2020 by Ishaq Khan

74 answer

Pi to the power y, for small y's

InputThis task takes no input.OutputYour code should compute and print (or return)$pi^y$ for all $y = frac11, frac12, frac13, frac14, frac15, frac16, frac17, frac18, frac19, frac1{10}, frac1{11},...

Asked on 10/04/2020 by user9207

22 answer

The Third String

Given two strings, output a third string that is not equal to either of the two inputs, but has the same length (in characters) as either of the inputs. There...

Asked on 09/05/2020 by Stephen

36 answer

Compress your code in an image

This is a quine variation.IntroductionWe all write short code, because some obscure reasons, but whatever we do, the'll take up at...

Asked on 08/17/2020 by Bálint

11 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP