Category: Array

11
Apr
2017

2d array codes

  Code: #include<stdio.h> int main(){ int arr[10][10],i,j,m,n; //Read order printf(“enter order of matrix:\n”); scanf(“%d %d”,&m,&n); //read matrix…

17
Feb
2017

Monk and Welcome Problem

#include<iostream> using namespace std; int main(){ long long int n,tr, ary1[100000],ary2[100000],d; cin>>n; for(int i=0; i<n; i++){ cin>>ary1[i];…

15
Feb
2017

String and Hackerearth

String Upper: #include<iostream> #include<string> #include<cstdio> using namespace std; void upper_string(char st[]); int main(){ char str[100]; cout<<“Enter string:…

13
Feb
2017

A good Array Example

Hackerrank problem: #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main()…

05
Nov
2015

Find Maximum and Minimum and Summation value from array

Did this problem from subeen vai’s book. For maximum value: #include<stdio.h> int find_max(int ara[],int n); int main()…

03
Nov
2015

Reverse Array/Array Copy

code: #include<stdio.h> int main() { int ara[]={10,20,30,40,50,60,70,80,90,100}; //took this array for various limit int ara2[10]; //max value…