We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0550711 commit 6dd5b20Copy full SHA for 6dd5b20
DataStructures/Lists/CountSinglyLinkedListRecursion.java
@@ -18,9 +18,7 @@ public static void main(String[] args) {
18
private int countRecursion(Node head) {
19
return head == null ? 0 : 1 + countRecursion(head.next);
20
}
21
- /**
22
- *Returns the count of the list.
23
- */
+ /** Returns the count of the list. */
24
@Override
25
public int count() {
26
return countRecursion(getHead());
0 commit comments