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> | |
using namespace std; | |
void swap(int *a, int* b) | |
{ | |
int tmp = *a; | |
*a = *b; | |
*b = tmp; | |
} |
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> | |
using namespace std; | |
// Input a sorted array of integres. | |
// Out put searcha and give the position of the search element | |
int search(int arrayToSearch[], int startPos, int size , int searchMe) | |
{ |
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> | |
int startPos1= 0; | |
using namespace std; | |
void swap(int a[], int from, int to) | |
{ | |
if (from !=to) | |
{ |
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
Scale a deployment: | |
============================ | |
kubectl scale deployment alphamon-user --replicas=2 | |
Update/Change image of a deployment: | |
======================================= | |
kubectl set image deployments/alphamon-user alphamon-user=gcr.io/alphamon-982144/alphamon-user:v2 | |
Describe a deployment: | |
====================================== |