# Puzzles and Logic

**URL:** https://forum.codeselfstudy.com/c/puzzles-and-logic/6.md

[Latest](https://forum.codeselfstudy.com/latest.md) · [Categories](https://forum.codeselfstudy.com/categories.md) · [Tags](https://forum.codeselfstudy.com/tags.md)

---

## [Interview Practice Problems](https://forum.codeselfstudy.com/t/interview-practice-problems/2060)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [January 22, 2020, 2:46am UTC](https://forum.codeselfstudy.com/t/interview-practice-problems/2060 "2020-01-22T02:46:56Z")

</div>

This wiki page lists coding puzzles that are useful for interview practice. This is a wiki-post that anyone can edit. Feel free to add more problems and/or rearrange these. These first ones are from the algorithms vide…

---

## [List of Programming Puzzle Websites](https://forum.codeselfstudy.com/t/list-of-programming-puzzle-websites/865)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [August 1, 2018, 5:15am UTC](https://forum.codeselfstudy.com/t/list-of-programming-puzzle-websites/865 "2018-08-01T05:15:16Z")

</div>

Here s a list of coding puzzle websites. Are there any other good sites (or books/videos/courses) that people know of? Code Wars Project ideas Project Ideas Competitive Programming Problems Coder Byte 99 Lisp Problems 9…

---

## [About the Puzzles and Logic category](https://forum.codeselfstudy.com/t/about-the-puzzles-and-logic-category/15)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [December 16, 2017, 9:42pm UTC](https://forum.codeselfstudy.com/t/about-the-puzzles-and-logic-category/15 "2017-12-16T21:42:20Z")

</div>

This section of the forum is for discussing logic and puzzles (not necessarily computer-related ones).

---

## [Puzzle: My smallest code interpreter (aka Brainf\*\*k) \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-my-smallest-code-interpreter-aka-brainf-k-algorithms/2516)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 21, 2020, 11:41pm UTC](https://forum.codeselfstudy.com/t/puzzle-my-smallest-code-interpreter-aka-brainf-k-algorithms/2516 "2020-11-21T23:41:00Z")

</div>

“My smallest code interpreter (aka Brainfk)\*\*” is a coding puzzle that people can be attempted in the following languages: javascript, python, ruby, haskell, clojure, java, crystal, php, cpp, typescript, rust, c, bf, cof…

---

## [Puzzle: Burrows-Wheeler-Transformation \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-burrows-wheeler-transformation-algorithms/2515)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 18, 2020, 5:35am UTC](https://forum.codeselfstudy.com/t/puzzle-burrows-wheeler-transformation-algorithms/2515 "2020-11-18T05:35:18Z")

</div>

“Burrows-Wheeler-Transformation” is a coding puzzle that people can be attempted in the following languages: haskell, javascript, csharp, ruby, python, java, cpp, and php. Difficulty: 4 kyu Stars: 218 Votes: 184 Catego…

---

## [Puzzle: Integers: Recreation One \[reference\]](https://forum.codeselfstudy.com/t/puzzle-integers-recreation-one-reference/2503)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 7:53pm UTC](https://forum.codeselfstudy.com/t/puzzle-integers-recreation-one-reference/2503 "2020-11-14T19:53:13Z")

</div>

“Integers: Recreation One” is a coding puzzle that people can be attempted in the following languages: ruby, python, javascript, java, csharp, coffeescript, haskell, clojure, cpp, php, crystal, fsharp, c, typescript, rus…

---

## [Puzzle: Highest Scoring Word \[reference\]](https://forum.codeselfstudy.com/t/puzzle-highest-scoring-word-reference/2501)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 8:02am UTC](https://forum.codeselfstudy.com/t/puzzle-highest-scoring-word-reference/2501 "2020-11-14T08:02:51Z")

</div>

“Highest Scoring Word” is a coding puzzle that people can be attempted in the following languages: javascript, haskell, ruby, python, crystal, csharp, java, r, cpp, c, elixir, powershell, php, kotlin, scala, nasm, rust, …

---

## [Puzzle: Last digit of a large number \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-last-digit-of-a-large-number-algorithms/2500)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 6:53am UTC](https://forum.codeselfstudy.com/t/puzzle-last-digit-of-a-large-number-algorithms/2500 "2020-11-14T06:53:35Z")

</div>

“Last digit of a large number” is a coding puzzle that people can be attempted in the following languages: haskell, javascript, python, ruby, kotlin, cpp, r, rust, and purescript. Difficulty: 5 kyu Stars: 535 Votes: 91…

---

## [Puzzle: Can you get the loop ? \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-can-you-get-the-loop-algorithms/2499)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 6:11am UTC](https://forum.codeselfstudy.com/t/puzzle-can-you-get-the-loop-algorithms/2499 "2020-11-14T06:11:07Z")

</div>

“Can you get the loop ?” is a coding puzzle that people can be attempted in the following languages: ruby, javascript, python, java, haskell, csharp, php, and kotlin. Difficulty: 5 kyu Stars: 992 Votes: 1281 Category: …

---

## [Puzzle: Roman Numerals Decoder \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-roman-numerals-decoder-algorithms/2498)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 4:09am UTC](https://forum.codeselfstudy.com/t/puzzle-roman-numerals-decoder-algorithms/2498 "2020-11-14T04:09:13Z")

</div>

“Roman Numerals Decoder” is a coding puzzle that people can be attempted in the following languages: javascript, coffeescript, ruby, python, haskell, csharp, php, typescript, swift, cpp, r, nim, go, elixir, lua, scala, a…

---

## [Puzzle: Valid Braces \[algorithms\]](https://forum.codeselfstudy.com/t/puzzle-valid-braces-algorithms/2488)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:33am UTC](https://forum.codeselfstudy.com/t/puzzle-valid-braces-algorithms/2488 "2020-11-11T09:33:12Z")

</div>

“Valid Braces” is a coding puzzle that people can be attempted in the following languages: javascript, coffeescript, haskell, csharp, python, java, ruby, php, typescript, elixir, cpp, dart, rust, swift, go, lua, and scal…

---

## [Puzzle: Rot13 \[reference\]](https://forum.codeselfstudy.com/t/puzzle-rot13-reference/2493)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 11, 2020, 9:43am UTC](https://forum.codeselfstudy.com/t/puzzle-rot13-reference/2493 "2020-11-11T09:43:15Z")

</div>

“Rot13” is a coding puzzle that people can be attempted in the following languages: ruby, haskell, python, javascript, shell, elixir, csharp, c, crystal, nasm, cpp, purescript, rust, and r. Difficulty: 5 kyu Stars: 840 …

---

## [Puzzle: Duplicate Encoder \[reference\]](https://forum.codeselfstudy.com/t/puzzle-duplicate-encoder-reference/2492)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 4:16am UTC](https://forum.codeselfstudy.com/t/puzzle-duplicate-encoder-reference/2492 "2020-11-11T04:16:29Z")

</div>

“Duplicate Encoder” is a coding puzzle that people can be attempted in the following languages: java, javascript, python, ruby, csharp, php, rust, r, scala, nim, c, elm, haskell, typescript, cpp, coffeescript, crystal, s…

---

## [Puzzle: Multiply \[bug\_fixes\]](https://forum.codeselfstudy.com/t/puzzle-multiply-bug-fixes/2489)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 2:20am UTC](https://forum.codeselfstudy.com/t/puzzle-multiply-bug-fixes/2489 "2020-11-10T02:20:45Z")

</div>

“Multiply” is a coding puzzle that people can be attempted in the following languages: javascript, coffeescript, ruby, python, haskell, clojure, java, csharp, elixir, cpp, typescript, php, crystal, dart, rust, fsharp, sw…

---

## [Puzzle: Century From Year \[reference\]](https://forum.codeselfstudy.com/t/puzzle-century-from-year-reference/2483)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 7:53pm UTC](https://forum.codeselfstudy.com/t/puzzle-century-from-year-reference/2483 "2020-11-05T19:53:22Z")

</div>

“Century From Year” is a coding puzzle that people can be attempted in the following languages: cpp, python, javascript, haskell, go, csharp, c, ruby, crystal, php, typescript, powershell, scala, groovy, coffeescript, ja…

---

## [Puzzle: Tortoise racing \[reference\]](https://forum.codeselfstudy.com/t/puzzle-tortoise-racing-reference/2481)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 4, 2020, 10:45am UTC](https://forum.codeselfstudy.com/t/puzzle-tortoise-racing-reference/2481 "2020-11-04T10:45:18Z")

</div>

“Tortoise racing” is a coding puzzle that people can be attempted in the following languages: ruby, python, javascript, haskell, java, csharp, clojure, coffeescript, cpp, php, crystal, fsharp, c, typescript, rust, swift,…

---

## [Puzzle: Build a pile of Cubes \[reference\]](https://forum.codeselfstudy.com/t/puzzle-build-a-pile-of-cubes-reference/2480)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 4, 2020, 9:56am UTC](https://forum.codeselfstudy.com/t/puzzle-build-a-pile-of-cubes-reference/2480 "2020-11-04T09:56:42Z")

</div>

“Build a pile of Cubes” is a coding puzzle that people can be attempted in the following languages: csharp, java, ruby, python, javascript, coffeescript, haskell, clojure, elixir, typescript, cpp, php, crystal, fsharp, c…

---

## [Puzzle: Sort Out The Men From Boys \[reference\]](https://forum.codeselfstudy.com/t/puzzle-sort-out-the-men-from-boys-reference/2479)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 0\
**Last updated:** [November 4, 2020, 9:47am UTC](https://forum.codeselfstudy.com/t/puzzle-sort-out-the-men-from-boys-reference/2479 "2020-11-04T09:47:12Z")

</div>

“\*\*Sort Out The Men From Boys \*\*” is a coding puzzle that people can be attempted in the following languages: cpp, javascript, ruby, crystal, python, haskell, c, java, php, dart, julia, typescript, coffeescript, reason,…

---

## [Puzzle: Beginner Series #2 Clock \[reference\]](https://forum.codeselfstudy.com/t/puzzle-beginner-series-2-clock-reference/2478)

<div class="topic-metadata">

**Author:** [@content\_bot](https://forum.codeselfstudy.com/u/content_bot)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 9:23am UTC](https://forum.codeselfstudy.com/t/puzzle-beginner-series-2-clock-reference/2478 "2020-11-04T09:23:16Z")

</div>

“Beginner Series #2 Clock” is a coding puzzle that people can be attempted in the following languages: csharp, javascript, ruby, java, python, prolog, cfml, c, typescript, julia, swift, solidity, shell, scala, rust, reas…

---

## [Programming Challenge](https://forum.codeselfstudy.com/t/programming-challenge/1279)

<div class="topic-metadata">

**Author:** [@Chan](https://forum.codeselfstudy.com/u/Chan)\
**Replies:** 1\
**Last updated:** [December 27, 2018, 7:28am UTC](https://forum.codeselfstudy.com/t/programming-challenge/1279 "2018-12-27T07:28:11Z")

</div>

For those who are job searching, this was posted for a company that was hiring as par for the course to get an interview. http://212.47.247.139/challenge/ Try it and see if you can solve it.

---

## [Good puzzles for kids? (age 9-15)](https://forum.codeselfstudy.com/t/good-puzzles-for-kids-age-9-15/975)

<div class="topic-metadata">

**Author:** [@PaulH](https://forum.codeselfstudy.com/u/PaulH)\
**Replies:** 10\
**Last updated:** [November 4, 2018, 4:26pm UTC](https://forum.codeselfstudy.com/t/good-puzzles-for-kids-age-9-15/975 "2018-11-04T16:26:10Z")

</div>

I am looking for coding puzzles that might draw kids into trying programming. Maybe some kind of addictive math problem to really convey the joy of solving these puzzles. So far attempts at teaching simple JS function …

---

## [CS50 Puzzle Day 2018](https://forum.codeselfstudy.com/t/cs50-puzzle-day-2018/504)

<div class="topic-metadata">

**Author:** [@gkarp](https://forum.codeselfstudy.com/u/gkarp)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 8:18pm UTC](https://forum.codeselfstudy.com/t/cs50-puzzle-day-2018/504 "2018-03-09T20:18:40Z")

</div>

I am on Harvard’s CS50 (MOC edx programming class) mailing list. Every year they host a puzzle day. This year’s is this weekend (starts today, Friday). Would anyone be interested in working on it on Saturday? I have neve…

---

## [The puzzles and logic category](https://forum.codeselfstudy.com/t/the-puzzles-and-logic-category/64)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [December 17, 2017, 7:43am UTC](https://forum.codeselfstudy.com/t/the-puzzles-and-logic-category/64 "2017-12-17T07:43:40Z")

</div>

My reason for creating this section was because I think it would be fun to work on small logic puzzles together at meetings. They could be computer based or not computer based. I have some books by Raymond Smullyan that …
