Skip to content

Instantly share code, notes, and snippets.

View programmingGod-byte's full-sized avatar

programmingGod-byte

View GitHub Profile
#include<bits/stdc++.h>
using namespace std;
int partition(vector<int>& arr, int l, int r, int pivot){
int pivotIndex = find(arr.begin()+l, arr.begin()+r+1, pivot) - arr.begin();
swap(arr[pivotIndex], arr[r]);
int storeIndex = l;
for(int i = l; i < r; i++){
if(arr[i] < pivot){
@programmingGod-byte
programmingGod-byte / Dockerfile
Created October 2, 2024 06:08 — forked from piyushgarg-dev/Dockerfile
Docker In One Shot
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get upgrade -y
RUN apt-get install -y nodejs
COPY package.json package.json
COPY package-lock.json package-lock.json