Coding Problems

Practice algorithmic problems and improve your coding skills

Guest Access: You can view 1 problem. Register to solve problems and track your progress.

Validate a string containing brackets (), [], {} and asterisks (*). An asterisk can act as any type of opening or closin...

stack brackets backtracking validation
130 points Solve Problem

Design a data structure that supports adding integers and finding the median of all added numbers efficiently. The media...

heap priority-queue data-stream median

In a group of N people, find the celebrity. A celebrity is someone who is known by everyone else but knows no one. Given...

matrix graph celebrity-problem optimization

A broken clock shows the wrong time and gains or loses a fixed number of minutes every hour. Given the current wrong tim...

math time-calculation logic

Transform number A into number B using the minimum number of operations. Available operations: add 1, multiply by 2, sub...

bfs shortest-path graph number-theory

Print a mirrored numeric triangle pattern where each row contains numbers from the row number down to 1. For input N, cr...

pattern loops string-formatting

A "jumping number" is a positive integer where every pair of adjacent digits differs by exactly 1. Find all jumping numb...

number-theory digit-manipulation bfs generation

A password is "perfect" if it contains no repeating substring of length 3 or more. Given a password string, determine if...

string substring hash-set validation

Find the shortest path in a maze containing teleportation portals. The maze has walls (#), open paths (.), start (S), en...

bfs graph shortest-path teleportation

Decode an encrypted message where each character is encoded using the formula: encoded_value = (position × ASCII_value)...

math modular-arithmetic decryption number-theory
Showing 51 to 60 of 100 results
Feedback