Skip to main content

Questions tagged [grid]

For challenges involving a grid.

14 votes
20 answers
2k views

This is the 2D version of Sum of neighbours: Given a 2D grid of integers, output a grid of the same size where each cell contains the sum of the values of its orthogonal and diagonal neighbors (up to ...
turalson's user avatar
  • 581
18 votes
13 answers
1k views

We've been given a map of the night sky. The map features three single characters, to match the theme, I'll refer to them O, X ...
turalson's user avatar
  • 581
7 votes
4 answers
656 views

Queens is a puzzle that consists of a NxN grid divided into continuous color regions. Your goal is to have exactly one queen (Q) in each row, column, and color region Two queens cannot be adjacent to ...
z..'s user avatar
  • 2,119
10 votes
7 answers
1k views

Tango is a puzzle that consists of a 6x6 grid partially filled with moons (M) and suns (S) and two lists of coordinate pairs, which we will call = and ...
z..'s user avatar
  • 2,119
25 votes
8 answers
1k views

The Cartesian plane can be tiled with increasingly large squares like so: This tiling can be generated by starting with a square of side length 1, placed at the origin ...
emanresu A's user avatar
  • 46.2k
11 votes
5 answers
1k views

Write a program/function that can help users make simple drawings by moving a cursor contained within a grid of characters, and by selecting which characters should be at a specific position. Expected ...
Weird Glyphs's user avatar
14 votes
13 answers
1k views

related The golfing languages 05AB1E and Vyxal have a "canvas" builtin that draws a string on a ASCII grid. In this challenge, you'll be implementing a simplified form of this. You should ...
emanresu A's user avatar
  • 46.2k
12 votes
6 answers
2k views

Given three grids and the sum of rows and columns of each grid, your task is: Grid \$3×3\$: Fill the grid from \$1\$ to \$9\$, ensure no repeats within the grid. Grid \$4×4\$: Fill the grid from \$1\...
user avatar
14 votes
12 answers
3k views

3-Dimensional Minesweeper I've been on a minesweeper kick for a while, but all the questions are for 2 dimensions (or that one in 1D). But 2D is 2 easy! Challenge Write the shortest code possible to ...
pacman256's user avatar
  • 5,395
26 votes
6 answers
3k views

Given a Minecraft terrain as a 2-dimensional array of integers or similar datastructure, determine the maximum number of cacti that can be planted on it. The integers represent the height (y) of the ...
Cactusroot's user avatar
29 votes
5 answers
2k views

I recently found this game and have been enjoying it. Basically, there is a grid of colored tiles and you act by clicking on empty spaces. When you click an empty space, the first tile (if any) in ...
hyperneutrino's user avatar
  • 42.8k
26 votes
9 answers
3k views

In crossword terminology, the grid is the region into which the crossword answers are inserted, consisting of white and black squares. The crossword answers, called entries, are inserted into ...
97.100.97.109's user avatar
30 votes
10 answers
4k views

Consider the following spiral of positive integers: We now define grambulation as a binary operation \$\lozenge : \mathbb N \times \mathbb N \to \mathbb N\$, using this grid. Some example inputs and ...
caird coinheringaahing's user avatar
8 votes
5 answers
556 views

An intriguing MathsSE question asked if there were large N-queens solutions where no three queens lie on a line. That question's body included the unique 4×4 solution up to symmetries ...
Parcly Taxel's user avatar
  • 4,749
13 votes
19 answers
4k views

Bingo Bingo is a numbers game where players match randomly drawn numbers to the numbers on their cards. Each bingo card is a square grid with 25 spaces, and the columns of the grid are labeled with ...
Stewie Griffin's user avatar

15 30 50 per page
1
2 3 4 5
26