Repository navigation
Add eleven LeetCode-style problems - #79
Conversation
Minimum Penalty for a Shop, Parallel Courses III, One Edit Distance, Cheapest Flights Within K Stops, Calculate Amount Paid in Taxes, Number of Black Blocks, Alert Using Same Key-Card Three or More Times in a One Hour Period, Brace Expansion, Invalid Transactions, Simple Bank System and Next Permutation, each as one migration and a reference solution. Simple Bank System is a design problem, so its starter is a Bank class, and the starter check accepts it alongside Solution and Codec.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (23)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe pull request adds eleven coding problem records, Python starter scaffolds, and test cases. It also adds reference implementations and command-line runners for all eleven problems. Starter-code validation now accepts a ChangesProblem catalog additions
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Merge Risk: ⚪ Minimal · up to No confirmed issue prevents merging after normal checks. Pre-merge checks |
|
What and why
Adds eleven problems, each as one
V<n>__add_<slug>.sqlmigration (V15 to V25) and a reference solution inapps/backend/tests/solutions/:All are from LeetCode, with the statements written fresh. Merge Intervals was on the same list but already exists, so it is not here.
Simple Bank System is a design problem, so its starter is a
Bankclass with four methods and a harness that runs one operation per input line.test_problems.pynow acceptsclass Bankin a starter, as it already didclass Codec.This is one pull request rather than one per problem as CONTRIBUTING.md asks, since they were added together.
How this was verified
make test: 163 passed, 5 skipped (sandbox). That includes the reference solution and the migration shape check for each new problem.Docs
None needed.
Summary by CodeRabbit