From 5bbd9ab95e015143cd70bacfed135e9c5532f673 Mon Sep 17 00:00:00 2001 From: sourav44 Date: Fri, 31 May 2019 10:50:22 +0530 Subject: [PATCH] Add files via upload --- src/doubleArrayElement.cpp | 34 ++++++++++++++++++++++++++++++++++ src/transpose_matrix.cpp | 1 + 2 files changed, 35 insertions(+) create mode 100644 src/doubleArrayElement.cpp create mode 100644 src/transpose_matrix.cpp diff --git a/src/doubleArrayElement.cpp b/src/doubleArrayElement.cpp new file mode 100644 index 0000000..0212cab --- /dev/null +++ b/src/doubleArrayElement.cpp @@ -0,0 +1,34 @@ +#include +using namespace std; + +#define ll long long +#define pb push_back +#define mp make_pair +#define ff first +#define ss second +#define db double +#define pll pair +#define pdb pair +#define clr(x) memset(x,0,sizeof(x)) +#define count_bit(x) __builtin_popcount(x) +const ll size=1e6+7; +const ll mod=1e9+7; + +int main() +{ + + cout<<"Enter the size of the array"<>n; + cout<<"Enter the array elements"< vi; + + for(ll i=0;i>x; + vi.pb(x); + vi[i] = 2*vi[i]; + } + + cout<<"The array elements after doubling are :"<