記事一覧
![](https://assets.st-note.com/production/uploads/images/14304204/rectangle_large_type_2_b14f92d5407a690e72951a13a142832b.png?width=800)
Adding all elements in a vector with C++
Adding the elements of a vector with a for loop looks #include <vector>int sum(std::vector<int> nums) { // your code here int sum = 0; for (int i = 0; i < nums…
![](https://assets.st-note.com/production/uploads/images/14205273/rectangle_large_type_2_c70efce36c6bf78b1875378af12518b1.jpeg?width=800)
Stopping or Killing a Docker container
To stop or kill the container "busybox" we created, just initiate the docker stop or kill command together with the container id. #Stopping a containerdocker s…
Factorial with recursion
Ever wonder how recursion works in code? Imagine when you are given 6!, you first multiply the next integer factorial in sequence (6! = 6*5!). You repeat the process until 0 is reached. This works the
もっとみるAdding all elements in a vector with C++
Adding the elements of a vector with a for loop looks
#include <vector>int sum(std::vector<int> nums) { // your code here int sum = 0; for (int i = 0; i < nums.size(); i++) { sum += nums[i]; } retu
Stopping or Killing a Docker container
To stop or kill the container "busybox" we created, just initiate the docker stop or kill command together with the container id.
#Stopping a containerdocker stop (container id)#Killing a containerdo
Starting a docker container
Let's get our hands dirty and kick start a docker container with busybox, an image you can download from docker hub and run a bash command within the container.
#Inputdocker run busybox echo hell
MapReduce with Python Example
MapReduce is a programming model and an associated implementation for processing and generating big data sets with a parallel, distributed algorithm on a cluster. (Wikipedia: https://en.wikipedia.or
もっとみるHadoop Intro
What is Hadoop?
Apache Hadoop is a group of open-source software utilities used for distributed storage and processing of big data based on the MapReduce model. Hadoop is seen as a solution to mana