Keyboard Distance Typing
MediumCalculate the total typing distance between two words using a standard QWERTY keyboard layout. Distance is measured as M...
Sentence Shuffler
HardGiven a sentence, shuffle the words such that no word remains in its original position. Return any valid arrangement whe...
Reversed Dictionary Words
MediumGiven a dictionary of words and a target string, count how many dictionary words appear in the string when reversed.
Encode Frequency Map
EasyEncode a string as character-frequency pairs sorted by character. Format: each character followed by its frequency count...
Find the length of the longest substring where vowels and consonants alternate. Vowels are a, e, i, o, u.
Bridge City
HardYou are a city planner tasked with optimizing the road network of Bridge City. The city has n intersections (nodes) conn...
WiFi Range Coverage
MediumGiven house positions on a line and WiFi routers with their ranges, check if every house gets WiFi coverage. Return "YES...
Simulate a cleaning robot in a grid. Robot starts at (0,0), cleans cells marked "C", avoids obstacles "#", and consumes...
Invisible Island
HardIn a matrix of 0s (water) and 1s (land), find islands that are completely surrounded by water with no border contact. Is...
Find the maximum sum of any rectangular submatrix in a 3D matrix. Consider all possible 3D rectangular regions and retur...