Formatted with Google Java Formatter
This commit is contained in:
parent
0550711a3e
commit
6dd5b2029e
@ -18,9 +18,7 @@ public class CountSinglyLinkedListRecursion extends SinglyLinkedList {
|
||||
private int countRecursion(Node head) {
|
||||
return head == null ? 0 : 1 + countRecursion(head.next);
|
||||
}
|
||||
/**
|
||||
*Returns the count of the list.
|
||||
*/
|
||||
/** Returns the count of the list. */
|
||||
@Override
|
||||
public int count() {
|
||||
return countRecursion(getHead());
|
||||
|
Loading…
Reference in New Issue
Block a user