feat: solve 2303. Calculate Amount Paid in Taxes with unit testing#93
Merged
mathusanm6 merged 2 commits intomainfrom Sep 14, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a solution for LeetCode problem 2303: "Calculate Amount Paid in Taxes" with comprehensive unit testing support. The implementation includes both Python and C++ versions along with their respective test files.
Key changes:
- Added complete solution implementation for tax calculation problem
- Created unit tests for both Python and C++ implementations
- Updated build system to use shortened Makefile target names (lint-py, format-py)
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| problems/calculate_amount_paid_in_taxes/config.yml | Problem configuration with metadata and complexity analysis |
| problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes.py | Python implementation of tax calculation algorithm |
| problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes.h | C++ header file with function declaration |
| problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes.cc | C++ implementation of tax calculation algorithm |
| problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes_test.py | Python unit tests using pytest |
| problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes_test.cc | C++ unit tests using Google Test |
| Makefile | Updated target names from format-python/lint-python to format-py/lint-py |
| hooks/pre-commit | Updated to use new shortened Makefile target names |
| .github/workflows/presubmit-python.yml | Updated CI workflow to use new target names |
| .github/workflows/linter-python.yml | Updated linter workflow to use new target names |
| README.md | Updated documentation and solution count badges |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes.h
Outdated
Show resolved
Hide resolved
problems/calculate_amount_paid_in_taxes/calculate_amount_paid_in_taxes.cc
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #82