Skip to content

Instantly share code, notes, and snippets.

@jihunhong
jihunhong / README-Template.md
Created December 11, 2018 19:02 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

class Solution {
public int solution(int[] A) {
long N = A.length +1;
long totalSum = (N*(N+1))/2;
for(int i=0; i<A.length; i++){
totalSum -= A[i];
}
return (int)totalSum;