$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
| apt update | |
| #install curl | |
| apt install -y curl | |
| #install a few prerequisite packages which let apt use packages over HTTPS | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| #add the GPG key for the official Docker repository | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| #include <iostream> | |
| #include <string.h> | |
| using namespace std; | |
| int t;//number of test cases | |
| int price[100000][3]={0}; | |
| int cache[100000][3]={-1}; | |
| int n; | |
| unsigned int costOfBuying(int fromShop, int item){ | |
| //if buying from last shop, return total price |