Skip to content

Commit c38c04a

Browse files
authored
******
1 parent 23ec25b commit c38c04a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Solution {
2+
public:
3+
int findKthPositive(vector<int>& arr, int k)
4+
{
5+
for(int i=0;i<arr.size();i++)
6+
{
7+
if(arr[i]<=k)
8+
k++;
9+
}
10+
return k;
11+
}
12+
};

0 commit comments

Comments
 (0)