TransWikia.com
  1. All Categories
  2. Code Golf

Code Golf : Recent Questions and Answers (Page 2)

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

How happy is this emoticon?

In this challenge, submissions will be programs or function which, when given an emoticon such as :-), :(, or :D, will rate their happiness from 0 to 3. An emoticon...

Asked on 12/12/2021

45 answer

1, 2, Fizz, 4, Buzz

IntroductionIn our recent effort to collect catalogues of shortest solutions for standard programming exercises, here is PPCG's first ever vanilla FizzBuzz challenge. If you wish to see other catalogue challenges,...

Asked on 12/10/2021

358 answer

Am I a Self Number?

A self number (also called a Colombian or Devlali number) is a natural number, x, where the equation n + <digit sum of n> = x has no...

Asked on 12/10/2021 by Sok

34 answer

Eight days a week

Back in 1965, The Beatles released their hit song 'Eight Days a Week'.In this code-golf challenge we are going to...

Asked on 12/10/2021

4 answer

And and… and. And.?

Introduction:Inspired by the Puzzling-stackexchange post with the same name, which I've answered four years ago:Can you create a perfectly valid English sentence, which makes perfect sense, but which contains...

Asked on 12/10/2021 by Kevin Cruijssen

20 answer

Smooth a line graph

Given an input of an integer n and a list of positive integers m1,m2, ..., output a list of integers m1',m2', ... where mx' is defined as the...

Asked on 12/08/2021

11 answer

The Cantor Function

The Cantor function is continuous everywhere and constant almost everywhere, but has an average slope of 1: The function can...

Asked on 11/30/2021

14 answer

Distinguish English and Spanish with regular expressions

The task is to to compete for the shortest regex (in bytes) in your preferred programming language which can distinguish between English and Spanish with minimum 60% 90% accuracy. ...

Asked on 11/30/2021

2 answer

Triangular code, triangular output

For this challenge, submissions should be a program or function shaped like a right triangle, which produces a right triangle of the same size. What is a right triangle? For...

Asked on 11/28/2021

61 answer

Print this diamond

This question has been spreading like a virus in my office. There are quite a variety of approaches: Print the following: 1...

Asked on 11/25/2021

121 answer

Ask a Question

Get help from others!

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