Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [computer-puzzle]

A tag for puzzles dependent upon some degree of computer literacy - for instance, requiring basic familiarity with operating system usage, encryption or programming.

-1
votes
0answers
52 views

Array rotate and delete [closed]

Based on the problem in GeeksForGeeks here. I came across a solution here. The question is as follows ...
0
votes
0answers
96 views

A series of blocks (total $n + m$) is given to us and 0 is stored initially in each.We are given a number $H$ and we can choose $H$ blocks at a time

Operation - we can choose $H$ blocks at a time and can fill those blocks with digit 1. we can do this Operation as many times we want. if block has already 1 in it and we are going to put 1 again then ...
7
votes
6answers
798 views

Restoring order in a deck of playing cards (II)

Michelle has a deck of 52 playing cards in a pile with their backs facing up. She takes the first 2 cards in the pile, turns them over, and places them at the bottom of the pile. She now takes the ...
13
votes
3answers
2k views

Restoring order in a deck of playing cards (I)

Michelle has a deck of 52 playing cards, stacked in a pile with their backs facing up. She takes the first 2 cards in the pile, turns them over, and places them at the bottom of the pile. She now ...
9
votes
2answers
291 views

Generating different difficulties in custom puzzle

first of all this is my first time asking something here so please let me know if I am doing something wrong or asking it on the wrong place. I have a custom puzzle model where I need to generate ...
2
votes
1answer
115 views

The “Jumbled” Cipher

The elusive "Jumbled" cipher has stumped scientists and cryptographers alike... Not really, but it will stump you soon... The Jumbled Cipher is a mysterious text cipher that puts text into an ...
19
votes
3answers
463 views

Ornithogenic Turnover

Peptiberg: Hello, friend. Why do you look so pleased? Tippgeber: My friend just had a change of profession - from a divisive one to a constructive one. Peptiberg: Was it a smooth transition? ...
19
votes
2answers
491 views

The Sequencer - da-da-daaa!

This is what the diagram on the machine looked like: And this is the output that was in the box. ...
7
votes
1answer
725 views

How to test for logic operator precedence

While coding in Python, I realized I couldn't remember which is evaluated first: and (the logical conjunctive operator), or (...
3
votes
2answers
145 views

The fantastic matrix

Here's another question that I have been asked in an interview lately. Let $M$ be an $n × n$ matrix whose values are $”+”$ and $”-”$. M is called fantastic if it is possible to make all it's values $”...
8
votes
2answers
228 views

From one color to another

white turns to blue blue turns to red red turns to aquamarine but green stays the same People from StackOverflow might appreciate this one.
17
votes
2answers
499 views

Maximum Height of a Hotel with Strange Elevators

I encountered this puzzle many years ago, and I think back on it often as it is unique and thought provoking. As far as I know nobody has proved the given solution as optimum, so it may still be ...
19
votes
4answers
739 views

Consecutive integers around a circle

Find a block of positive consecutive integers that can be placed around a circle in some order so that any two adjacent numbers always have a common divisor greater than 1.
10
votes
1answer
355 views

Countries of World - Three Blocs

Two junior colleagues of mine came to me today morning. Both of them wearing a broad smile. I asked what the matter, what mischief are you guys planning. One of them just typed a URL on my computer. ...
2
votes
1answer
101 views

Pairwise coprime numbers in a 3 x 3 board

Find all the ways of placing all the digits 1 to 9 in the cells of a 3 x 3 board in such a manner that the seven three-digit numbers that can be read horizontally (from left to right), vertically (top ...
12
votes
5answers
514 views

Labelling a Snow Flake Graph to Attain Minimum Sum

Label the vertices (or nodes) of this graph with positive integers so that any two nodes are joined by a edge (or line) if and only if the corresponding integers have a common divisor greater than 1 (...
2
votes
0answers
147 views

A partition of 79633 into thirteen parts [duplicate]

The sum of thirteen positive integers is 79633. If placed appropriately on the vertices of this graph, two of them will be joined by an edge if and only if they have a common divisor greater than 1 (...
9
votes
1answer
250 views

Scoring Oracle: Bob easily wins, but how much?

Bob meets a magician with two bags and a chest on a bridge. The magician challenges him with the following enigma: Here is a bag A, holding 5080 pebbles. Here is another bag B. Most of the pebbles ...
7
votes
3answers
213 views

A 4 x 4 Magic Square with Pairwise Relatively Prime Entries

Find a 4 x 4 magic square of positive integers such that any two of its entries are pairwise different and relatively prime, i.e., have no common divisor greater than 1. What is the least that the ...
16
votes
6answers
529 views

A regular riddle

I'm kept inside a boxy cage.A prefix for the modern age, I make the messages you create fly at a supersonic rate. Now that box has me and my friends inside a box with rounded ends. You can ...
0
votes
1answer
166 views

One-word riddle (possibly python)

The question/riddle is: "Never has a snake given such words of wisdom." The hint is: "Thou shall never pass errors silently!" It is possible to be related to Python, errors or something like that. ...
1
vote
2answers
124 views

A Fun, Fantastic, Phonic Cipher!

An old friend of mine recently sent me an email. Being a linguist, he always finds creative (read: annoying) ways to use his words to baffle me. After about five minutes, I usually just give up. ...
8
votes
3answers
1k views

What date encoding could this be?

40 years ago I read a book, but couldn't remember the title. I've been looking for it for a while, and I finally (finally!) found it! And then I worked out why it took so long. It hasn't been ...
7
votes
1answer
202 views

Can you give us a statement?

Picture an 11x11 grid. Each cell must contain one character. This can be any ASCII character. The contents of the entire row must validate against both corresponding H regex clues. And the contents of ...
10
votes
3answers
570 views

Where is the money?

When I was just a little kid my parents died in a terrible accident, and I was left alone in the world. When I reached the age of 18, I received an envelope with a letter that read the following: ...
31
votes
3answers
2k views

Mysterious Flash Drive

First puzzle I ever do! Hopefully it won't be too easy or too challenging. My co-worker just gave me a USB flash drive, which was supposed to contain a couple files of code for me to review. ...
7
votes
1answer
120 views

Statements in Java

Each code block translates to a specific statement in English. There is a theme behind the statements. As code puzzles tend to be "easier" (relative to other PSE puzzles) than expected, it will not be ...
4
votes
1answer
101 views

question of royal proportions

I dont know if this is going to be any good but this is my first attempt at on of these puzzles. The following piece of code relates to a famous saying/phrase/article/piece. ...
7
votes
1answer
298 views

An Artwork Made from Several Countries

Last year I went to 12 different countries around the world. I made an AI to convert every country that I've visited into a beautiful artwork as a reminder. I input the 12 countries name, then somehow ...
3
votes
1answer
251 views

Applied logic challenge problem #2

This is similar to my previous Applied Logic Challenge Problem but with a significant difference at the end which could make this problem somewhat more difficult. Again it is a problem of my own ...
4
votes
2answers
203 views

Applied logic challenge problem

You must determine what can be concluded from the 60 true statements below. The numbers in each statement represent binary values (true / ...
4
votes
2answers
890 views

Find the cipher algorithm and decode the message

Sam is a computer expert. He works in a Security Company. His son Tim just turned thirteen and is new to C++ programming and ciphertexts . He decides to write a C++ program to make a cipher algorithm. ...
-1
votes
2answers
368 views

What's the Difference?

*not sure if this counts as a real puzzle, but I will ask it anyways. Can you catch the difference between the 2 following letters? х ...
32
votes
14answers
6k views

Debugging with printf()

Bob, a C programmer and a believer of printf-debugging, gets hired by a failing software company. The company is not doing well because they adopt an archaic source code management system which does ...
9
votes
1answer
244 views

Puzzles like Sokoban?

I am looking for some puzzles like Sokoban or 15-puzzle but more difficult to solve and satisfy the following requirements: The number of possible moves at each step should be limited, let's say < ...
-3
votes
1answer
83 views

You see me right now… but you can't

Look over here! Oh... that's right. I'm too small to be seen. But you are still looking at me. Crazy! I know right? Here, how about this? You guess what I am! Okay. Well if I get too much ...
7
votes
5answers
854 views

Who killed the president?

(Semi-interactive puzzle) Puzzle 1 You slowly roll out of bed, preparing for the day of solving crime ahead of you. After all, you are the greatest detective the world has ever seen. But at work, ...
8
votes
2answers
364 views

The “foo” encoding

This puzzle has been solved. Please skip to the bottom of this question for the answer. Introducing the mysterious foo encoding... based on the common computer programming template variables ...
176
votes
10answers
18k views

Game of Life: Kill the Sun

Below is an initial state for Conway's Game of Life with a single pulsar. Living cells are white. The area marked with red is your base. You are free to modify any of the red cells, but only those, ...
4
votes
1answer
173 views

What does one do to decrypt this?

'Encrypted': 10101110001011101000000001110111000101011100011101110000000011101110100010111000111010111011100 Context: This is simpler than you think. So simple the solution to this problem would be ...
11
votes
3answers
5k views

My co-workers left me a message

While refactoring a massive chunk of old code, I found a rather curious section of code commented out that wasn't there the day before. Can you tell me what it means? ...
8
votes
1answer
204 views

Once again, another Linux movie quote!

Because I can't get off this linux movie quote train, here is another one! Can you find the famous movie quote hidden in this linux block? ...
12
votes
2answers
1k views

Yet another movie line on the Linux terminal

What famous quote does the following terminal session refer to? $ ps -o ppid= -p $u 28342 $ echo $$ 28342
36
votes
1answer
4k views

Chuck Norris vs. This Question

public var c: = Infinity; public var w:Array = [,<...
9
votes
1answer
497 views

Yet another movie quote hidden in Linux

Inspired by this question and this question, can you guess the famous movie quote hidden in this Linux block? ...
13
votes
1answer
1k views

Another Linux movie command

Inspired by this question, here's another Linux command representing a famous line: cp -a ~she ~ Which line is it?
70
votes
2answers
8k views

What famous line does this Linux command line represent?

The following shows a Linux command line with a # prompt: ...
3
votes
2answers
146 views

Tiling rectangles with Hexomino plus rectangle #3

Inspired by Polyomino T hexomino and rectangle packing into rectangle See also series Tiling rectangles with F pentomino plus rectangles and Tiling rectangles with Hexomino plus rectangle #1 ...
7
votes
3answers
478 views

Tiling rectangles with F pentomino plus rectangles

Inspired by Polyomino Z pentomino and rectangle packing into rectangle Also in this series: Tiling rectangles with N pentomino plus rectangles Tiling rectangles with T pentomino plus rectangles ...
14
votes
2answers
503 views

Tiling rectangles with W pentomino plus rectangles

Inspired by Polyomino Z pentomino and rectangle packing into rectangle Also in this series: Tiling rectangles with F pentomino plus rectangles Tiling rectangles with N pentomino plus rectangles ...