Name: Anonymous 2021-04-12 8:59
I've heard that your code can run faster if you indent it in reverse, so that the compiler can process it like a tree design pattern from the very top of the "branches" down. This helps because gravity will speed up the time it takes for your code to be compiled, and the data structure efficiency is improved. Here's an example, in Java scripting:
But for some reason Notepad doesn't have a setting to do this automatically, so I need a program to do it for me.
function fib(n) {
var a = 1, b = 1;
while (--n > 0) {
var tmp = a;
a = b;
b += tmp;
if (a === Infinity) {
return "Error!";
}
}
return a;
}
But for some reason Notepad doesn't have a setting to do this automatically, so I need a program to do it for me.