mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
clang-format and clang-tidy fixes for f7695035
This commit is contained in:
parent
a5ddf1eeec
commit
32b9037068
@ -121,10 +121,9 @@ int list::top() {
|
||||
if (!isEmpty()) {
|
||||
int n = head->val;
|
||||
return n;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
|
||||
}
|
||||
/**
|
||||
* function to find the last element of the list
|
||||
@ -138,9 +137,8 @@ int list::last() {
|
||||
t = t->next;
|
||||
}
|
||||
return t->val;
|
||||
}
|
||||
else return 0;
|
||||
|
||||
} else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user