This file contains hidden or 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> | |
| #include<climits> | |
| using namespace std; | |
| // Prototype of a utility function to swap two integers | |
| void swap(int *x, int *y); | |
| // A class for Min-Max Heap | |
| class MinMaxHeap |
This file contains hidden or 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
| /* This is progam of ceasar cipher encryption and brute force attack */ | |
| #include<iostream> | |
| using namespace std; | |
| //function to encrypt the plain text | |
| string encrypt(string x,int n) | |
| { | |
| string cipher=""; | |
This file contains hidden or 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; | |
| //function to encrypt the plain text | |
| string encrypt(string x,int n) | |
| { | |
| string cipher=""; | |
| for(int i=0;i<x.length();i++) | |
| { |
This file contains hidden or 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<stdlib.h> | |
| using namespace std; | |
| struct node | |
| { | |
| int info; | |
| struct node *next; | |
| struct node *prev; | |
| }*head=NULL,*tail=NULL; |
This file contains hidden or 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<stdlib.h> | |
| using namespace std; | |
| struct node | |
| { | |
| int info; | |
| struct node *link; | |
| }*head=NULL; |