Formatted with Google Java Formatter

This commit is contained in:
github-actions 2021-04-09 14:19:34 +00:00
parent 0550711a3e
commit 6dd5b2029e

View File

@ -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());