Category: Programming

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

Palindrome C code

http://dharanyadevi.blogspot.com/2012/04/palindrome-in-c-without-using-string.html

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

Vector in C++

Vector Codes: #include<iostream> #include<cstdio> #include<vector> using namespace std; int main(){ vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); for(int…

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) { //…