/*
Read more: http://javarevisited.blogspot.com/2015/06/top-20-array-interview-questions-and-answers.html
*/
/*
1. How to find missing number in integer vector of 1 to 100?
You have given an integer vector which contains numbers from 1 to 100
but one number is missing, you need to write a Lisp program to find
that missing number in vector.
One trick to solve this problem is calculate sum of all numbers in
vector and compare with expected sum, the difference would be the
missing number.
*/
#include
#include
#include
int sum_vector(int vector[],int size){
int s=0;
for(int i=0;i