Skip to content

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

Merged
merged 13 commits into from
Jun 11, 2025
Merged

feat!: 157 daily problem design #158

merged 13 commits into from
Jun 11, 2025

Conversation

QuBenhao
Copy link
Owner

Python3, C++, Java and Typescript now dynamically load daily problems according to json file daily-{PROBLEM_FOLDER}.json file

@QuBenhao QuBenhao requested a review from Copilot June 11, 2025 07:11
@QuBenhao QuBenhao self-assigned this Jun 11, 2025
@QuBenhao QuBenhao linked an issue Jun 11, 2025 that may be closed by this pull request
Copy link
Contributor

@Copilot Copilot AI left a 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>

@QuBenhao QuBenhao merged commit 98351ab into master Jun 11, 2025
@QuBenhao QuBenhao deleted the 157-daily-problem-design branch June 11, 2025 07:27
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.

daily-problem-design
2 participants