From 13eaf27d2009216a5d67a8e320a6377f8e3c0504 Mon Sep 17 00:00:00 2001 From: Aishwarya Chandra <122461230+aishwarya-chandra@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:05:25 +0000 Subject: [PATCH] day8q1 --- .../q1. First Missing Positive/aishwarya--J.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Day-8/q1. First Missing Positive/aishwarya--J.md diff --git a/Day-8/q1. First Missing Positive/aishwarya--J.md b/Day-8/q1. First Missing Positive/aishwarya--J.md new file mode 100644 index 00000000..51c5a61e --- /dev/null +++ b/Day-8/q1. First Missing Positive/aishwarya--J.md @@ -0,0 +1,18 @@ +``` +class Solution { + public int firstMissingPositive(int[] nums) { + int n=nums.length; + Arrays.sort(nums); + int sum=1; + for(int i=0;i