Solutions to some coding problems that I've come across. Sometimes I might not have come up with the most efficient way of doing things, but it is a good opportunity to practice.
Code Jam 2009
- A. Alien Language (Qualification)
GCJ Africa 2010
- C. T9 Spelling (Qualification)
Code Jam 2014
- B. Cookie Clicker Alpha (Qualification)
- D. Deceitful War (Qualification)
- A. Charging Chaos (1A)
Code Jam 2015
- A. Standing Ovation (Qualification)
Code Jam 2016
- A. Counting Sheep (Qualification)
- B. Revenge of the Pancakes (Qualification)
Code Jam 2017
- A. Oversized Pancake Flipper (Qualification)
- B. Tidy Numbers (Qualification)
Code Jam 2020
- A. Vestigium (Qualification)
reddit.com/r/dailyprogrammer
- Call Forwarding
- Pyramid Sliding
- Balance My Spending
- Packing Stack of Boxes
- Hello World Genetic Algorithm
- Progressive Taxation
Advent Of Code
other stuff
sentence
If we have a sentence like this:
"In this sentence there are _ 0, _ 1, _ 2, _ 3, _ 4, _ 5, _ 6, _ 7, _ 8, _ 9."
Write a problem to find the right combination of numbers that makes the sentence valid.
N Queens problem
The N queens puzzle is the problem of placing N chess queens on an N×N chessboard so that no two queens threaten each other.