From d384a76e702cde2e2efb6920b89566fe93a8c2a7 Mon Sep 17 00:00:00 2001 From: ARsh-ALgo <72185264+ARsh-ALgo@users.noreply.github.com> Date: Tue, 6 Oct 2020 18:22:14 +0530 Subject: [PATCH 1/2] Update PartitionDay20.cpp Added few code lines for better readability for the user. --- day20/C++/PartitionDay20.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/day20/C++/PartitionDay20.cpp b/day20/C++/PartitionDay20.cpp index 5a47f209..9c8008f4 100644 --- a/day20/C++/PartitionDay20.cpp +++ b/day20/C++/PartitionDay20.cpp @@ -1,5 +1,5 @@ -/** - * @author divyakhetan +/* + * @author divyakhetan * @date 16/1/2019 */ @@ -11,6 +11,7 @@ using namespace std; int main(){ int n; + cout << "Enter the number of values you want to have."<> n; int a[n]; for(int i = 0; i < n; i++){ @@ -42,9 +43,11 @@ int main(){ ans.push_back(part); //for the remaining array //cout << ans.size(); + cout<<"Your answer is :- "; for(int i = 0; i < ans.size(); i++){ for(int j = 0; j < ans[i].size(); j++){ - cout << ans[i][j] << " "; + cout<< ans[i][j] << " "; + } cout << endl; } From ed14a283364acf29031994fa611610d37995e53f Mon Sep 17 00:00:00 2001 From: ARsh-ALgo <72185264+ARsh-ALgo@users.noreply.github.com> Date: Sat, 10 Oct 2020 18:55:44 +0530 Subject: [PATCH 2/2] Update PartitionDay20.cpp --- day20/C++/PartitionDay20.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day20/C++/PartitionDay20.cpp b/day20/C++/PartitionDay20.cpp index 9c8008f4..11a4ba58 100644 --- a/day20/C++/PartitionDay20.cpp +++ b/day20/C++/PartitionDay20.cpp @@ -11,7 +11,7 @@ using namespace std; int main(){ int n; - cout << "Enter the number of values you want to have."<> n; int a[n]; for(int i = 0; i < n; i++){