Question: ```css
.container {
max-width: 1170px;
margin: 0 auto;
}

.row::after {
    display: block;;
    content: "";
    clear: both;
}

.col {
    float: left;
}

.col-6 {
    width: 50%;
}

.content {
    font-size: 3em;
    text-align: center;
    color: #fff;

    background-color: green;
    width: 100%;
    height: 300px
}
```

```html
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
    <div class="row">

        <div class="col col-6">
            <div class="content">Half of container width</div>
        </div>

        <div class="col col-6">
            <div class="content green">The remaining part of the viewport 
horizontally
            </div>
        </div>
    </div>
</div>
</body>
</html>
```

I would like to achieve this effect where the first col-6 spans the first 50% of the container's width , and the second col-6 spans from 50% of the containers width to the end of the viewport. I'd like to put an image there, if it matters ( if absolute positioning must be used ).
Hopefully this is descriptive enough

Answer: 
```
class SmallestPositiveIntegerNotInArray {

    public int solution(int[] a) {

        HashSet<Integer> hashSet = new HashSet<Integer>();
        int smallInt = 1;

        for (int i = 0 ; i < a.length; i++) {
            hashSet.add(a[i]);                     
        }

         while (hashSet.contains(smallInt)) {
             smallInt++;
            }

        return smallInt;
    }
}

```
I think sorting array first will consuming time, that is not efficient for code performance.
you could try the following simple code:

```
public static int solution2(int[] A) {
        // write your code in Java SE 8
     Arrays.sort(A);
     int smallest =1 ;
     for (int i=0 ; i< A.length; i++) {
         System.out.println(A[i]);
         if (A[i]==smallest) // to increase smallest
             smallest++;  
     }

   return smallest; 
 }

```