{{ message }}

Instantly share code, notes, and snippets.

💻
Either Optimising or Developing something...

# Abhishek Srivastava abhishek2x

💻
Either Optimising or Developing something...
Created Nov 29, 2020
Finding the peak of an array
View peak.cpp
 /*! * Finding the peak of an array */ #include using namespace std; #define ll long long int int main(){
Last active Dec 19, 2020
Finding Square root using Binary Search Algorithm
View sq.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ /* For demstration of concept we are using int variable. But ideally we will prefer using double value with an Epison error estimation. */
Created Dec 19, 2020
Count how many times a Sorted array is rotated
View cnt.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ #include using namespace std; #define ll long long int int countRotations(int arr[], int low, int high)
Created Dec 19, 2020
Searching in Nearly Sorted Array
View near.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ #include using namespace std; #define ll long long int int main(){
Created Dec 19, 2020
Finding a position on an Element in an infinite array
View inf.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ #include using namespace std; #define ll long long int int binaryPlay(vector a, int l, int h, int key){ while(l<=h){
Created Dec 19, 2020
Searching in Bitonic Infinite Array.
View binf.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ #include using namespace std; #define ll long long int int main(){
Created Dec 19, 2020
Searching in 2-D Array
View 2d.cpp
 /*! * Copyright (c) 2020 Abhishek Srivastava */ #include using namespace std; #define ll long long int int main(){
Created Feb 5, 2021
Webpack basic configuration
View webpack.config.js
 const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js', }, };