Skip to content

Instantly share code, notes, and snippets.

View prakhar987's full-sized avatar

Prakhar Pandey prakhar987

  • Gurgaon, India
View GitHub Profile

Deploying a docker container running jupyter notebooks on a remote server.

The standard way : The standard way is to write everything in a DockerFile, build an image using this file and deploy the image. But for someone just starting to learn docker, this is really difficult.

The dumb way : As a beginner its better to one by one install and modify things and commit the changes ourselves. Once someone becomes comfortable with this, they can directly write DockerFile and directly make images with everything setup.

Create a local docker image, modify it, then deploy on a remote machine as a docker container and access jupyter notebook running inside this container.

class Solution {
public:
struct Trie{
vector<Trie *>child;
int index=-1;
};
void insert(Trie *root,string s,int index)
{
int index;
for(int i=0;i<s.size();i++)