Repository navigation
Add Subsets (Power Set) problem (Recursion & Backtracking) - #56
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWHcRRCLEp8pJraeZvLfBL
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
# Conflicts: # src/main/java/com/example/onlinejava/problem/ProblemRegistry.java
# Conflicts: # src/main/java/com/example/onlinejava/problem/ProblemRegistry.java
|



Summary
subsets.SubsetsProblemclass inproblem.algorithms, followingBubbleSortProblem's exact pattern for metadata and hidden-test harness.ProblemRegistry's constructor.src/test/resources/solutions/subsets.txt(iterative "double the subsets per element" approach) andsubsets.wrong.txt(deliberately returns only single-element subsets, missing the empty subset and larger combinations).ProblemRegistryTest'shasSize(10)tohasSize(11).Test plan
Ran the scoped validation command (also runs Checkstyle, bound to the
validatephase):Result:
Only the whitelisted files were touched (confirmed via
git diff --name-only): the new problem class,ProblemRegistry.java, the two solution files, andProblemRegistryTest.java.Note that the repo's own CI (
.github/workflows/ci-cd.yml) will independently re-run the full suite against a real Postgres container before merge is possible.Opened automatically by a scheduled cloud agent (every 2 hours), not auto-merged -- please review.
Generated by Claude Code