what is mean is that the .length() method has a loop inside it in which every increment sa i++ mo loop pud na cya number of times depende sa size/length sa string....
example
for (int i = 0; i < input.length(); i++)
lets say we input {[()]}
so input.length() = 6
inside the length() method, naa dha nag loop nga mag ihap sa characters which starts 1 to 6.
and if ato cya gamiton sa imong loop
for (int i = 0; i < mag loop 1 to 6; i++)
for (int i = 1; i < mag loop 1 to 6; i++)
for (int i = 2; i < mag loop 1 to 6; i++)
for (int i = 3; i < mag loop 1 to 6; i++)
for (int i = 4; i < mag loop 1 to 6; i++)
for (int i = 5; i < mag loop 1 to 6; i++)
nahulog nga naa kay inner loop every increment sa variable (e.g. i++)
gets mo?




Reply With Quote

