Top "Puzzle" questions

DO NOT USE - prefer constructive questions, or use more descriptive tags.

What is the simplest SQL Query to find the second largest value?

What is the simplest SQL query to find the second largest integer value in a specific column? There are maybe …

sql puzzle
How to find list of possible words from a letter matrix [Boggle Solver]

Lately I have been playing a game on my iPhone called Scramble. Some of you may know this game as …

algorithm puzzle boggle
Expand a random range from 1–5 to 1–7

Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer …

algorithm random puzzle
How to find all combinations of coins when given some dollar value

I found a piece of code that I was writing for interview prep few months ago. According to the comment …

algorithm recursion puzzle coin-change
How to generate Sudoku boards with unique solutions

How do you generate a Sudoku board with a unique solution? What I thought was to initialize a random board …

algorithm puzzle sudoku
java based programming challenges

Is there any website which provides core java based programming challenges that tests programming logic?

java puzzle
Set every cell in matrix to 0 if that row or column contains a 0

Given a NxN matrix with 0s and 1s. Set every row that contains a 0 to all 0s and set every …

algorithm optimization puzzle
Tape-Equilibrium Codility Training

I received a codility test the other day for a job, as such I've been practicing using some of the …

java algorithm puzzle
Programmer Puzzle: Encoding a chess board state throughout a game

Not strictly a question, more of a puzzle... Over the years, I've been involved in a few technical interviews of …

algorithm language-agnostic puzzle chess
Check if a number is divisible by 3

Write code to determine if a number is divisible by 3. The input to the function is a single bit, 0 or 1, …

puzzle division modulo