Optimal program to find the missing element form an array of numbers from 1 to 100. Some puzzles from GFG.
Sigiloso
Calculate sum of first n natural numbers using formula and subtract the sum of the elements of input array,which would give the missing number