download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
let A be the given array of integers | |
let minSum = infinity, minLeft = 0, minRight = 0, currentMin = 0, left = 0, right = 0 | |
for i = 0 to A.length - 1 | |
currentMin += A[i] | |
if currentMin < minSum | |
minSum = currentMin | |
right = i; | |
minLeft = left | |
minRight = right | |
if currentMin > 0 |