AWS region
eg ( us-east-1 b , ) can go upto 6 availability zones
| #!/usr/bin/env bash | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
| sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
| sudo apt-get update | |
| sudo apt-get install docker-ce | |
| # https://docs.docker.com/compose/install/ |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct node { | |
| int data; | |
| struct node * next; | |
| } node; | |
| void push(node **header_ref , int data){ | |
| /** function to push data ( node ) at the head |
| #include<iostream> | |
| using namespace std; | |
| int main() { | |
| string name; | |
| bool performedGood = false; | |
| int n, lower , upper; | |
| cin>>n; | |
| while(n--) { | |
| cin>>name>>lower>>upper; |
| #include <iostream> | |
| using namespace std; | |
| inline int checkThePoint(int a, int x, int y) { | |
| if(x > 0 && x < a && y > 0 && y < a) return 0;; | |
| if(((x == 0 || x == a) && ( y >= 0 && y <= a)) || ((y == 0 || y == a) && ( x >= 0 && x <= a))) return 1; | |
| return 2; | |
| } | |
| int main() { |
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <iterator> | |
| using namespace std; | |
| template <typename T> | |
| void bubble(vector<T> & V, int size) { | |
| for (int i = size-1; i >= 0 ; i--) { | |
| for (int j = 0; j <= i;j++ ) { |
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <iterator> | |
| using namespace std; | |
| template <typename T> | |
| void insertionSort(vector<T> &V, int n) { | |
| int i,j; | |
| T key; |