fix: Polishing code format on linearLogRecur, convert String type to string (#841)

This commit is contained in:
hpstory
2023-10-08 20:33:30 +08:00
committed by GitHub
parent 2bba70fd87
commit e03022d5fb
7 changed files with 8 additions and 16 deletions
@@ -134,8 +134,7 @@ public class time_complexity {
/* 线性对数阶 */
static int LinearLogRecur(float n) {
if (n <= 1) return 1;
int count = LinearLogRecur(n / 2) +
LinearLogRecur(n / 2);
int count = LinearLogRecur(n / 2) + LinearLogRecur(n / 2);
for (int i = 0; i < n; i++) {
count++;
}