This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author @ mama | |
Date : 19/10/2013 | |
Prob : https://www.hackerrank.com/contests/oct13/challenges/angry-children-2 | |
*/ | |
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.codechef.com/NOV13/problems/MCHAIRS/ | |
#include <vector> | |
#include <iostream> | |
#include <cmath> | |
#include <algorithm> | |
#include <string> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
int main() | |
{ | |
ios_base::sync_with_stdio(false); | |
int t; | |
cin>>t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implementation of Seive Eratosthenes ( Prime number genrator upto n; | |
// https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes | |
// Autohr @ Shravan40/mama | |
// Place : Kharagpur, India | |
// Date : 10/11/2013 | |
#include <iostream> | |
#include <vector> | |
#include <cmath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author @ Shravan40/mama | |
// Date : 12/11/2013 | |
// Title : Seive of Atkin ( Prime number Generator) | |
#include <iostream> | |
#include <cmath> | |
#include <vector> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*************************************************************** | |
// HEADER FILE USED IN PROJECT | |
//**************************************************************** | |
#include<iostream> | |
#include<fstream> | |
#include<cctype> | |
#include<iomanip> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct node | |
{ | |
int data; | |
struct node* left; | |
struct node* right; | |
}; | |
struct node* newNode(int num) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program to reverse the string | |
// Author @ shravan40/mama | |
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main() | |
{ | |
ios_base::sync_with_stdio(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<vector> | |
using namespace std; | |
int main() | |
{ | |
cout<<"Enter the number of element in sequence : "; | |
int n; | |
cin>>n; | |
vector<int> data; | |
int temp; |