From 63f8c6c3ca33d540056484d934fc2696e950ad9b Mon Sep 17 00:00:00 2001 From: Samson Alajede Date: Fri, 11 Oct 2024 15:20:25 +0100 Subject: [PATCH] Removed abbreviations for better readability --- code/backtracking/src/subset_sum/subset_sum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/backtracking/src/subset_sum/subset_sum.py b/code/backtracking/src/subset_sum/subset_sum.py index d87be98bbb..0323c3dca9 100644 --- a/code/backtracking/src/subset_sum/subset_sum.py +++ b/code/backtracking/src/subset_sum/subset_sum.py @@ -21,7 +21,7 @@ def subsetsum(cs, k, r, x, w, d): # Main array w w = [2, 3, 4, 5, 0] x = [0 for i in range(len(w))] -print("Enter the no u want to get the subsets sum for") +print("Enter the number you want to get the subsets sum for: ") num = int(input()) if num <= sum(w): print("The subsets are:-\n") @@ -29,5 +29,5 @@ def subsetsum(cs, k, r, x, w, d): subsetsum(0, 0, sum(w), x, w, num) else: print( - "Not possible The no is greater than the sum of all the elements in the array" + "Not possible! The number is greater than the sum of all the elements in the array." )