Plz tell me how I would calculate time complexity of the program:
for (i=0; i<points.length; i++)
{
if (points[i].lng()<lon && points[j].lng()>=lon || points[j].lng()<lon && points[i].lng()>=lon)
{
if (points[i].lat()+(lon-points[i].lng())/(points[j].lng()-points[i].lng())*(points[j].lat()-points[i].lat())<lat)
{
inPoly=!inPoly;
}
}
j=i;
}
thnx in advance