Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed spaces to improve the presentation of code #2100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Code/C++/row_wise_sum.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* ROW WISE SUM OF A 2D ARRAY :
For a given 2-D integer type array of size (N x M), find and print the sum of each of the row elements in a single line, separated by a single space.*/
/*
ROW WISE SUM OF A 2D ARRAY :
For a given 2-D integer type array of size (N x M), find and print the sum of each of the row elements in a single line, separated by a single space.
*/

#include <iostream>
using namespace std;
Expand Down Expand Up @@ -37,7 +39,8 @@ int main()
row_wise_sum(&arr[0][0],rows,cols);
return 0;
}
/* EXAMPLE 1:
/*
EXAMPLE 1:
Enter the number of rows and columns:3 4
Enter the elements of the 2D array:
1 2 3 4
Expand All @@ -56,4 +59,5 @@ Row-wise Sum:
6 12 16

Time Complexity - O(N * M)
Space Complexity - O(1) */
Space Complexity - O(1)
*/