Daily challenge for 2025-08-26
238. Open the Lock
You have a lock with 4 wheels each from '0' to '9'. Starting from '0000', you can turn one wheel up or down by one. Given a list of deadends and a target, return the minimum number of moves to open the lock, or -1 if impossible.
Example:Input: deadends = ['0201','0101','0102','1212','2002'], target = '0202'Output: 6
Run this challenge interactively in Python or JavaScript when the app loads.