Skip to content

Backtracking-1 Done#1125

Open
ManishaRana1195 wants to merge 1 commit intosuper30admin:masterfrom
ManishaRana1195:master
Open

Backtracking-1 Done#1125
ManishaRana1195 wants to merge 1 commit intosuper30admin:masterfrom
ManishaRana1195:master

Conversation

@ManishaRana1195
Copy link

No description provided.

@super30admin
Copy link
Owner

Strengths:

  • The student has implemented two different approaches for the Combination Sum problem, showing a good understanding of backtracking.
  • The code is well-commented, explaining the time and space complexity and the approach.
  • The use of backtracking with a single list and removal of the last element is efficient and avoids deep copies.

Areas for Improvement:

  • The combinationRecursion method uses a for loop that might be less efficient than the 0/1 recursion approach. However, since it is not the primary method, it is acceptable.
  • The student included an unrelated solution for "Expression Add Operators" in the same submission. For future submissions, ensure that only the solution for the assigned problem is included to avoid confusion.

Overall, the solution for Combination Sum is correct and efficient.

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.

2 participants

Comments