1. All Categories
2. Code Golf

# Code Golf : Recent Questions and Answers

## 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...

## 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...

## "Hello, World!"

So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with ...

## Automate Saving the World

You are Desmond Hume. For the last 3 years, you and your partner, Kelvin, have been slave to a computer that requires a very specific sequence to be entered into...

## Rotate every 2x2 block in a matrix

The ChallengeGiven a n x m matrix with n > 1 and m > 1 filled with integers1 2 34 5 6and a list of integers with exactly...

## Showcase of Languages

NotesThis thread is open and unlocked only because the community decided to make an exception. Please do not use this question as evidence that you can ask similar questions...

## Saddle points in a matrix

A matrix can be thought of as the altitudes of a surface in 3D space.Consider the 8 neighbours (orthogonal and diagonal) of a cell as a cyclic sequence in...

IntroductionImagine you are on a two dimensional cartesian plane and want to determine your position on it. You know 3 points on that plane and your distance to each of...

## Simplest Tiling of the Floor

You should write a program or function which receives a string describing the floor as input and outputs or returns the area of the simplest meta-tiling which could create the...

## Is magic possible?

A magic square is an n-by-n square grid, filled with distinct positive integers in the range 1,2,...n^2, such that each cell contains a different integer and the sum...