Validate a string containing brackets (), [], {} and asterisks (*). An asterisk can act as any type of opening or closin...
Median in a Stream
HardDesign a data structure that supports adding integers and finding the median of all added numbers efficiently. The media...
Celebrity Finder
MediumIn a group of N people, find the celebrity. A celebrity is someone who is known by everyone else but knows no one. Given...
The Broken Clock
MediumA broken clock shows the wrong time and gains or loses a fixed number of minutes every hour. Given the current wrong tim...
Magic Number Transformer
MediumTransform number A into number B using the minimum number of operations. Available operations: add 1, multiply by 2, sub...
Print a mirrored numeric triangle pattern where each row contains numbers from the row number down to 1. For input N, cr...
Jumping Digits
MediumA "jumping number" is a positive integer where every pair of adjacent digits differs by exactly 1. Find all jumping numb...
Perfect Password
MediumA password is "perfect" if it contains no repeating substring of length 3 or more. Given a password string, determine if...
Maze with Portals
HardFind the shortest path in a maze containing teleportation portals. The maze has walls (#), open paths (.), start (S), en...
Decode an encrypted message where each character is encoded using the formula: encoded_value = (position × ASCII_value)...