diff --git a/MissingNumber.java b/MissingNumber.java new file mode 100644 index 0000000..4d7884d --- /dev/null +++ b/MissingNumber.java @@ -0,0 +1,27 @@ +public class MissingNumber { + public int getMissingElement(int [] nums) { + int low = 0; + int high = nums.length-1; + while(low