try {
for (int j=0; j < length; j++) {
int indx = s.indexOf(text.charAt(j));
if (indx >= 27 && indx <= 36) {
code += ((indx + key)%26);
}
else {
code += s.charAt((indx + key)%36);
}
}
}
Hi, Im pritty new to java, I wrote this code and just out of intrest was wondering about it's time complexity. Is there any way to work out max and min run times for any given value? I've been looking into this a bit, and have come up with nothing. Anyway any insite on how to start/finish this would be great?