TransWikia.com
  1. All Categories
  2. Code Golf

Code Golf : Recent Questions and Answers (Page 4)

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

Calculate average characters of string

TaskYour task is to produce string that contains average characters of string.First character of result would be average character of first character (which is first character) and second character...

Asked on 11/05/2021 by Hannes Karppila

42 answer

All you have to do is print the number 1! ...Twice

Your taskIn your language of choice: create a program that outputs 1 This 1 may either be a string or value equivalent to the number one.The shifting catchIf you take...

Asked on 10/27/2021

41 answer

Print a tongue twister!

The goal of this challenge is to print the following tongue twister:She sells seashells by the seashore,The shells she sells are seashells, I'm sure.So if she sells seashells on...

Asked on 10/27/2021 by Lebster

33 answer

Are they collinear?

TaskWrite a program/function that when given three 2d points in cartesian coordinates as input outputs a truthy value if they are collinear otherwise a falsey value...

Asked on 10/27/2021 by Mukundan314

19 answer

Find the perfect square!

Your task is to turn a square root like this:√12into a form like this:2√3For our purpose, we only need to output the left number here:2Test cases4...

Asked on 10/27/2021

31 answer

Music with pi and e

Because I forgot to celebrate Pi Day (14.3), let's celebrate with $pi$, $e$ (Euler's number) and music!ChallengeNo, we don't have time to eat a pi-pizza, let's make...

Asked on 10/27/2021

7 answer

Solve a 2xN Maze

Given a $2times N$ maze, determine if you can get from the start top left corner to end bottom right corner using only up, down, left, and right moves.InputA...

Asked on 10/27/2021

20 answer

Sum the array times n, except the last

I've been posting relatively hard challenges recently, so here goes an easy one.TaskGiven an array $A$ and a number $n$, calculate the sum of all numbers of ...

Asked on 10/27/2021

55 answer

Laguerre Polynomials

Laguerre polynomials are solutions to Laguerre's equation, a second-order linear differential equation: $xy''+(1-x)y'+ny=0$. For a given value of n, the solution, y, is named $L_n(x)$. The...

Asked on 10/27/2021 by golf69

16 answer

Create a Boolean Calculator

Our boolean operators are AND, OR, XOR, NAND, NOR, XNOR and, in conjunction with one of those operators, NOT. Our numbers are $1$ and $0$. The challenge is...

Asked on 10/27/2021

21 answer

Ask a Question

Get help from others!

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