TransWikia.com
  1. All Categories
  2. Code Golf

Code Golf : Recent Questions and Answers (Page 8)

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

Cover positions with snakes of same 'colour'

Imagine a grid where the origin square $(0,0)$ is at the top left of the screen, and positive $x$ is rightwards whereas positive $y$ is downwards. Coloured...

Asked on 10/27/2021 by lightlyheld

0 answer

Crazy Blazin' DOM Injection

IntroductionThis problem is a challenge that has to do with DOM manipulation at scale and overcoming some issues that may be inherent in dealing with the DOM.This challenge is interesting...

Asked on 10/27/2021

1 answer

Complete the Magic Square

BackgroundA magic square is an n×n matrix consisting of one of each of the integers from $1$ to $n^2$ where every row, column, and diagonal sum...

Asked on 10/27/2021 by fireflame241

10 answer

Hyperprogramming: N+N, N×N, N^N all in one

Write a program that takes in a number N from 1 to 9 inclusive. In its native form your program should output N+N. E.g. output 2 if N is 1,...

Asked on 02/24/2021 by Calvin's Hobbies

5 answer

Is this a BST pre-order traversal?

BackgroundA binary tree is a rooted tree whose every node has at most two children. A labelled binary tree is a binary tree whose every node is labelled with a...

Asked on 02/19/2021 by Delfad0r

16 answer

Which answer did this user write?

This is an answer-chaining challenge where each answer must take an integer $N$ as input and return the 1-indexed ID of the...

Asked on 02/18/2021 by Arnauld

20 answer

Count Euler's Tours

Leonhard Euler wants to visit a few friends who live in houses 2, 3, ..., N (he lives in house 1). However, because of how his city is laid out,...

Asked on 02/12/2021 by HyperNeutrino

8 answer

Calculate the Kronecker Product

Related, but very different.In the examples below, $A$ and $B$ will be $2times2$ matrices, and the matrices are one-indexed. A Kronecker product...

Asked on 02/07/2021 by Stewie Griffin

9 answer

Find the largest contiguous prime in a string

In fairness, this is based on a StackExchange question - but its a good question. The challenge is fairly simple:Take a string of numeralsFind and print the largest contiguous...

Asked on 02/07/2021 by user8777

12 answer

How to golf wrap-around assignments?

This is a relatively simple question. I'm trying to golf a Snake game I've written, and I'm trying to work out if there's a way to golf the following conditional...

Asked on 02/05/2021 by WallyWest

1 answer

Ask a Question

Get help from others!

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