- Node JS
node index.js
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void LeftShift(int arr[], int n) { | |
int temp = arr[0]; | |
for (int i = 0; i < n-1; i++) { |
// Task description | |
// This is a demo task. | |
// Write a function: | |
// function solution(A); | |
// that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. | |
// For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip