Category: HackerRank

13
Feb
2017

A good Array Example

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

12
Feb
2017

A good example of pointer code at Hacker Rank

A good example of pointer code at Hacker Rank: #include <stdio.h> void update(int *a,int *b) { //…

02
Dec
2015

HackerRank – A Very Big Sum

#include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include…

01
Dec
2015

HackerRank – Simple Array Sum

#include<stdio.h> int main() { int a[1000],n,i,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } printf(“%d”,sum); return 0; }