```
for(int i = 0; i < n; i++) {
    for(int j = 0; j < i; j++) { 
        //Code
    }
}

```

I know the first for-loop is O(n), but what about the second one?
['https://Stackoverflow.com/questions/40390491', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6442096/']
This problem happened because the angular version I am using is 1.5.

changing the executable from npm to npm.cmd solved the problem!

```
<execution>
                <id>exec-npm-update</id>
                <phase>generate-sources</phase>
                <configuration>
                  <workingDirectory>${uiResourcesDir}</workingDirectory>
                  <executable>npm.cmd</executable>
                  <arguments>
                    <argument>update</argument>
                  </arguments>
                </configuration>
                <goals>
                  <goal>exec</goal>
                </goals>
              </execution>

```
If you like to run the shell or command prompt commands irrespective of environment. I am talking about npm.cmd (windows), npm.sh (linux) parts. 

**Downgrade the maven-exec-plugin to Version 1.4.0** so that you can just mention (For e.g.)

```
<executable>npm</executable>
<executable>ng</executable>

```