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 <string> | |
# include <fstream> | |
# include <vector> | |
# include <algorithm> | |
# include <exception> | |
# include <sstream> | |
using namespace std; | |
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<string> | |
# include<cctype> | |
# include<string.h> | |
# include<cstring> | |
using namespace std; | |
struct node | |
{ | |
char data[45]; |
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 <string> | |
# include <cstring> | |
# include <string.h> | |
# include <windows.h> | |
using namespace std; | |
struct node | |
{ |
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 <string> | |
# include <vector> | |
# include <algorithm> | |
using namespace std; | |
int min_size(vector<vector<int>> asd) | |
{ | |
vector<int> a; | |
a.push_back(asd[0].size()); |
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 <queue> | |
using namespace std; | |
int main() | |
{ | |
queue<int> List; | |
int var; | |
cout << "Please enter Int (enter 0 to end): "<<endl; |
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; | |
struct node | |
{ | |
int data; | |
node *next; | |
}*head; | |
void display(struct node *r) |
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
//loop from the (begining) to the (size-1) index = c | |
{ | |
//save the current index in position | |
//search for the greater element loop from (begining+1) to (size) index = d | |
{ | |
//look for smaller element | |
//if the current element[d] is less than the element[position] | |
//change the saved index with the smaller element index (d) | |
} | |
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 <stdio.h> | |
int main() | |
{ | |
int array[100], n, c, d, position, swap; | |
printf("Enter number of elements\n"); | |
scanf("%d", &n); |
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 <string> | |
# include <string.h> | |
# include <cstring> | |
# include <bitset> | |
using namespace std; | |
struct node | |
{ | |
char data; |
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; | |
int main() | |
{ | |
int arr[5]; | |
int store; | |
for (int i = 0; i < 5; i++) | |
{ | |
cout << "please enter the value of index :" << endl; |