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
version: '3.8' | |
services: | |
db: | |
container_name: pg_container | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_USER: POSTGRES_USERNAME | |
POSTGRES_PASSWORD: POSTGRES_PASSWORD | |
POSTGRES_DB: psql |
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 <bits/stdc++.h> | |
using namespace std; | |
struct QNode { | |
int data; | |
QNode* next; | |
QNode(int d) | |
{ | |
data = d; | |
next = NULL; |
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<bits/stdc++.h> | |
using namespace std; | |
//create a structure for Node which will | |
// contain data and pointer to next Node | |
struct Node{ | |
int data; | |
struct Node* next; | |
//Function to create new node | |
//with Next Pointing to NULL | |
Node(int x){ |
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 <bits/stdc++.h> | |
using namespace std; | |
/* This function takes last element as pivot, places | |
the pivot element at its correct position in sorted | |
array, and places all smaller (smaller than pivot) | |
to left of pivot and all greater elements to right | |
of pivot */ | |
int partition (vector<int> &arr, int low, int high) | |
{ | |
int pivot = arr[high]; // pivot |
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<bits/stdc++.h> | |
using namespace std; | |
//create a structure for Node which will | |
// contain data and pointer to next Node | |
struct Node{ | |
int data; | |
struct Node *next; | |
//Function to create new node | |
//with Next Pointing to NULL | |
Node(int x){ |