Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

day 04 #56

Merged
merged 1 commit into from
Dec 4, 2024
Merged

day 04 #56

merged 1 commit into from
Dec 4, 2024

Conversation

Le0Developer
Copy link
Member

Copilot summary because why not:

This pull request includes a new program to count occurrences of specific patterns in a grid of characters. It introduces a main function that reads input from a file, processes the data to find patterns, and prints the results.

Key changes include:

  • New program implementation in 2024/04/leodev.v:

    • Reads lines from words.input file.
    • Counts occurrences of the target pattern 'XMAS' in multiple directions.
    • Counts occurrences of a specific pattern involving character 'A'.
    • Outputs the grid with marked patterns and prints the counts.
  • Input data added in 2024/04/words.input:

    • Provides a 10x10 grid of characters for the program to process.
  • Expected output data added in known/2024/04/leodev.out:

    • Shows the grid with found patterns marked and the counts of each pattern type.

@spytheman spytheman merged commit 0408cab into vlang:main Dec 4, 2024
1 check passed
@Le0Developer Le0Developer deleted the 2024/04 branch December 4, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants