Initial commit: AoC solutions 2023-2025
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
import numpy as np
|
||||
|
||||
# Your input data as a list of strings
|
||||
data = [
|
||||
"MMMSXXMASM",
|
||||
"MSAMXMSMSA",
|
||||
"AMXSXMAAMM",
|
||||
"MSAMASMSMX",
|
||||
"XMASAMXAMM",
|
||||
"XXAMMXXAMA",
|
||||
"SMSMSASXSS",
|
||||
"SAXAMASAAA",
|
||||
"MAMMMXMMMM",
|
||||
"MXMXAXMASX"
|
||||
]
|
||||
|
||||
# Convert each row into a list of characters, then stack them into an array
|
||||
array = np.array([list(row) for row in data])
|
||||
|
||||
# Display the array
|
||||
print(array)
|
||||
Reference in New Issue
Block a user