Yes Guys !
I will write a post about this, because recently I made some logic tests that are VERY VERY easy, but because of my nervous I made some mistakes Really, I have to stop to stay anxious about something… So, let’s go:
Tests Fibonnaci – JAVA:
if (n < 2) {
return n;
} else {
return fibo(n – 1) + fibo(n – 2);
}
}
System.out.print(Main.fibo(i) + “\t”);
}
}
}
Tests Reverse String – JAVA:
package Tests; public class Main { static String converse() { String a = "This is a string..."; String b = ""; for (int i = a.length() - 1; i >= 0; i--) { b = b + a.charAt(i); } return b; } public static void main(String[] args) { // test System.out.println(Main.converse()); } }