-
Notifications
You must be signed in to change notification settings - Fork 13
feat!: 157 daily problem design #158
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
Conversation
dynamic load daily
loaded from daily json
daily plans
load from daily
folder after plan problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a design for dynamically loading daily coding problems across multiple languages and build systems (Python, C++, Java, and TypeScript) using a JSON configuration file named daily-{PROBLEM_FOLDER}.json. Key changes include updated Bazel rules and repository setups, modifications to test harnesses in various languages, and documentation updates to guide users on the new configuration.
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
solutions.bzl | Updated function names and added a dynamic enable flag. |
qubhjava/test/TestMain.java | Replaced static problem instantiation with reflection and added static block initialization for problem IDs. |
qubhjava/test/ProblemsTest.java | Updated test static block to load problems dynamically. |
python tests and writers | Migrated file path handling to pathlib and updated JSON loading for daily problems. |
pom.xml and MODULE.bazel | Updated build configuration to support dynamic problem sources and bumped version. |
daily-problems.json | Added new configuration file for daily and planned problems. |
Comments suppressed due to low confidence (1)
pom.xml:196
- [nitpick] The change in the sourceDirectory from '.' to 'qubhjava' may affect the build structure. Please update the project documentation to clearly describe the new layout and rationale.
<sourceDirectory>qubhjava</sourceDirectory>
Python3, C++, Java and Typescript now dynamically load daily problems according to json file
daily-{PROBLEM_FOLDER}.json
file