We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!Submit Feedback
A solution to last week's challenge can be found here.
Challenge 200 represents another milestone (and badge!) on the trek up Mt. Everest: the arrival at Camp 4. To celebrate officially entering the Death Zone, we're serving up a challenge created by puzzler extraordinaire @TerryT!
Sudoku is a popular puzzle that requires you to the cells in a 9×9 grid with digits so that each row, each column, and each of the nine 3×3 boxes (shown with heavier lines) contains all the digits from 1 to 9 exactly once. Each puzzle is encoded as an 81 character string.
This challenge has three solution levels:
Using the Beginner and Intermediate Start File, parse the puzzle by separating rows nine characters at a time. The columns and boxes then line up accordingly where a ‘0’ represents an empty cell.
Solve the puzzle provided in the Beginner and Intermediate Start File.
Solve the Sudoku puzzle from the Wikipedia article (Wikipedia Puzzle Start File).
Welcome to the Death Zone (Source: GIPHY)
Quickly solving to get that 200th challenge done. Beginner is done. Will post intermediate/advanced when I have more time to think on it
EDIT: Here we go. I didn't want to use a macro this time around. All macroed out from Advent of Code (which I'm still plugging through!)
Using one of my favorite tools--(Regex). First break down the 81 character line into 9 character chucks; rename the columns; transpose it; break it into 9 fields; rename the fields; and that is it.
Beginner and Intermediate done. The Advanced is going to take some serious work...