# All Questions

13,395 questions
Filter by
Sorted by
Tagged with
39 views

### CGAC2022 Day 9: Playing with bits

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. The Elves like playing number games. One day, Bin (a friend of Fen) suggests a new game: given a positive integer <...
• 67.9k
81 views

### Find the representative submatrix

Note: This is a more limited version of a challenge from 2014 that only received one answer. That challenge required participants write two programs; this challenge is essentially one half of that. ...
• 8,936
305 views

### Santa's Shortest Path Problem

Santa's Shortest Path Problem Trying to be as time-efficient as possible Santa needs to plan his trips carefully. Given a 5X5 grid representing a map of villages it is your task to be Santa's flight ...
• 1,421
80 views

### Highest(non-mate) evaluation that Stockfish can get? [closed]

Not sure if this should be moved to chess. What's the highest evaluation(Black or White) that Stockfish will generate? Example: Parameters: Any version of Stockfish allowed. All depth must ...
• 9
379 views

### CGAC2022 Day 8: Fen The Wicked, Part 2

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Fen is a magician Elf. He can cast spells on an array of numbers to produce another number or array of numbers. One ...
• 67.9k
912 views

### Write a program that prints a program that's almost quine

Your task is to make a program in L that takes n as an input number, output a program p in <...
• 2,749
236 views

### ><> numbers metagolf

I struggle to easily encode big numbers in ><>. If only there was a program that could find the best way for me? What is ><> ...
• 4,916
33 views

### Filter Out 0 outbound value transaction from etherscan API [closed]

I'm working on a small project - A plot of historical tokens amount in ETH address. I'm using Python and etherscan API https://docs.etherscan.io/api-endpoints/accounts My test subject is Alameda ...
939 views

### CGAC2022 Day 7: Fen The Wicked

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Fen is a magician Elf. He can cast spells on an array of numbers to produce another number or array of numbers. One ...
• 67.9k
941 views

### CGAC2022 Day 6: Shuffles with specific "magic number"

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. On the flight to Hawaii for vacation, I'm playing with a deck of cards numbered from 1 to $n$. Out of curiosity, ...
• 67.9k
2k views

### Write a number as a sum of Fibonacci numbers

In 2009, Hannah Alpert described the "far-difference" representation, a novel way of representing integers as sums and differences of Fibonacci numbers according to the following rules: ...
• 8,597
1k views

### CGAC2022 Day 5: Preparing an advent calendar

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. It's time to prepare an advent calendar, but I've only got a large sheet of rectangular paper, randomly colored red ...
• 67.9k
1k views

### Output the length of (the length plus a message) [duplicate]

The task is simple. You're given an arbitrary string message. Return that message prefixed with a number, such that the length of that number plus the message equals the number. In other words, the ...
• 489
2k views

### CGAC2022 Day 4: Can Santa fit down the chimney?

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Christmas is coming up, and Santa hasn't kept to his diet very well this year. Due to his size, he is getting the ...
• 1,501
88 views

### Generate an image containing lots of random dots [closed]

Introduction I need a piece of code that is either fairly easily compliable to Windows .exe or fairly easy to be run under Windows that will accept only one parameter -- ...
• 51
359 views

### CGAC2022 Day 3: $n$-dimensional Chocolate Pyramid

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. I've got an infinite supply of $n$-dimensional chocolate for some positive integer $n$. The shape of the ...
• 39.1k
1k views

• 3,422
233 views

### Fastest code: Does a list of string contains %s, %d, %f, or %r?

The aim is to create an algorithm to detect that one of the string in a small list of strings contains %s, %d, ...
• 317
2k views

### Base Neutral Numbering System

It frustrates me that when you say "base 16", the 16 is in base 10. We need a base neutral way of writing down numbers when favoring a specific base would be inappropriate. How it works We ...
• 4,916
193 views

### Is it a legal atomic chess move?

Background and Rules There is a variant of chess called atomic chess, which follows essentially the same rules as normal chess, except that pieces explodes other pieces around them when captured. In ...
• 10.5k
2k views

### Rarity of a String

Input: A string Output: The rarity of the string, as described below. To find the rarity of a string, follow the steps below. Start with 0. Subtract 3 for each E, A, T, or O in the string. Subtract 2 ...
1k views

• 1,141
2k views

### "Prime" pyramid

The pyramid begins with the row 1 1. We'll call this row 1. For each subsequent row, start with the previous row and insert the current row number between every ...
• 13.4k
1k views

### Traverse a rectangle's antidiagonals

There exists a bijection between the natural and rational numbers that works (approximately) like this: You create a 1-indexed 2-dimensional grid. In every field of this grid with position ...
• 313
274 views

### Check if my input was 'hi whats up' without using any of those letters in your code

Write a script, program or function which takes one input of type string and outputs or returns some sort of indication wether the input string was 'hi whats up' (without the apostrophes) or not. You ...
• 127